diff --git a/cores/arduino/wiring.c b/cores/arduino/wiring.c index 972713581..670a067c6 100644 --- a/cores/arduino/wiring.c +++ b/cores/arduino/wiring.c @@ -238,7 +238,10 @@ void delayMicroseconds(unsigned int us) // return = 4 cycles } -void init() +//http://www.atmel.com/webdoc/AVRLibcReferenceManual/mem_sections_1sec_dot_init.html +// init5 is after .data, but before C++ initialization - perfect for hardware setup +void _do_setup(void) __attribute__ ((naked, used, section (".init5"))); +void _do_setup() { // this needs to be called before setup() or some functions won't // work there @@ -390,3 +393,6 @@ void init() UCSR0B = 0; #endif } + +// for backwards compatibility +void init() {} pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy