[gnoduino] arduino: resync to git master
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnoduino] arduino: resync to git master
- Date: Wed, 24 Sep 2014 19:57:16 +0000 (UTC)
commit 85100a452b2523a93ca0d8d1e419f70084cbb946
Author: Pascal de Bruijn <pmjdebruijn pcode nl>
Date: Thu Aug 14 18:17:57 2014 +0200
arduino: resync to git master
hardware/arduino/cores/arduino/Arduino.h | 2 ++
hardware/arduino/cores/arduino/main.cpp | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/hardware/arduino/cores/arduino/Arduino.h b/hardware/arduino/cores/arduino/Arduino.h
old mode 100644
new mode 100755
index 56caee6..a136d6c
--- a/hardware/arduino/cores/arduino/Arduino.h
+++ b/hardware/arduino/cores/arduino/Arduino.h
@@ -115,6 +115,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/hardware/arduino/cores/arduino/main.cpp b/hardware/arduino/cores/arduino/main.cpp
index d9413d2..c6c4391 100644
--- a/hardware/arduino/cores/arduino/main.cpp
+++ b/hardware/arduino/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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]