diff options
author | Cristian Maglie <c.maglie@bug.st> | 2014-08-08 15:44:41 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2014-08-08 15:44:41 +0200 |
commit | 5d87f9e8e2ee8e0a2028aec93dfe6951bd1c0c45 (patch) | |
tree | 8804134f8ba60b2e601311c0230bc69b7681785b /cores | |
parent | 48f5256789369bd5a4d8d9b9a663982aea717c7d (diff) | |
parent | 28acfd7d9d59b37f0b1deef25be999d281c1231b (diff) |
Merge branch 'master' into ide-1.5.x
Diffstat (limited to 'cores')
-rw-r--r-- | cores/arduino/Arduino.h | 2 | ||||
-rw-r--r-- | cores/arduino/main.cpp | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/cores/arduino/Arduino.h b/cores/arduino/Arduino.h index 630f0d6..ac775f1 100644 --- a/cores/arduino/Arduino.h +++ b/cores/arduino/Arduino.h @@ -120,6 +120,8 @@ typedef uint8_t byte; void init(void); void initVariant(void); +int atexit(void (*func)()) __attribute__((weak)); + void pinMode(uint8_t, uint8_t); void digitalWrite(uint8_t, uint8_t); int digitalRead(uint8_t); diff --git a/cores/arduino/main.cpp b/cores/arduino/main.cpp index 091c365..a60980d 100644 --- a/cores/arduino/main.cpp +++ b/cores/arduino/main.cpp @@ -19,6 +19,9 @@ #include <Arduino.h> +//Declared weak in Arduino.h to allow user redefinitions. +int atexit(void (*func)()) { return 0; } + // Weak empty variant initialization function. // May be redefined by variant files. void initVariant() __attribute__((weak)); |