aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cores/arduino/IPAddress.h3
-rw-r--r--cores/arduino/wiring_pulse.c14
-rw-r--r--libraries/EEPROM/library.properties2
-rw-r--r--platform.txt2
4 files changed, 12 insertions, 9 deletions
diff --git a/cores/arduino/IPAddress.h b/cores/arduino/IPAddress.h
index b20ab58..d762f2c 100644
--- a/cores/arduino/IPAddress.h
+++ b/cores/arduino/IPAddress.h
@@ -21,7 +21,8 @@
#define IPAddress_h
#include <stdint.h>
-#include <Printable.h>
+#include "Printable.h"
+#include "WString.h"
// A class to make it easier to handle and pass around IP addresses
diff --git a/cores/arduino/wiring_pulse.c b/cores/arduino/wiring_pulse.c
index 3212f13..d6e0434 100644
--- a/cores/arduino/wiring_pulse.c
+++ b/cores/arduino/wiring_pulse.c
@@ -69,22 +69,24 @@ unsigned long pulseInLong(uint8_t pin, uint8_t state, unsigned long timeout)
uint8_t port = digitalPinToPort(pin);
uint8_t stateMask = (state ? bit : 0);
- unsigned long maxMicros = micros() + timeout;
+ unsigned long startMicros = micros();
// wait for any previous pulse to end
- while ((*portInputRegister(port) & bit) == stateMask)
- if (micros() > maxMicros)
+ while ((*portInputRegister(port) & bit) == stateMask) {
+ if (micros() - startMicros > timeout)
return 0;
+ }
// wait for the pulse to start
- while ((*portInputRegister(port) & bit) != stateMask)
- if (micros() > maxMicros)
+ while ((*portInputRegister(port) & bit) != stateMask) {
+ if (micros() - startMicros > timeout)
return 0;
+ }
unsigned long start = micros();
// wait for the pulse to stop
while ((*portInputRegister(port) & bit) == stateMask) {
- if (micros() > maxMicros)
+ if (micros() - startMicros > timeout)
return 0;
}
return micros() - start;
diff --git a/libraries/EEPROM/library.properties b/libraries/EEPROM/library.properties
index 86f488a..dfa46cd 100644
--- a/libraries/EEPROM/library.properties
+++ b/libraries/EEPROM/library.properties
@@ -2,7 +2,7 @@ name=EEPROM
version=2.0
author=Arduino, Christopher Andrews
maintainer=Arduino <info@arduino.cc>
-sentence=Enables reading and writing to the permanent board storage. For all Arduino boards BUT Arduino DUE.
+sentence=Enables reading and writing to the permanent board storage. For all Arduino boards BUT Arduino DUE and Arduino ZERO.
paragraph=
category=Data Storage
url=http://www.arduino.cc/en/Reference/EEPROM
diff --git a/platform.txt b/platform.txt
index e96a4c1..b541c16 100644
--- a/platform.txt
+++ b/platform.txt
@@ -62,7 +62,7 @@ recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -m
recipe.S.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.S.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{object_file}"
## Create archives
-recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}"
+recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
## Combine gc-sections, archives, and objects
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.flags} -mmcu={build.mcu} {compiler.c.elf.extra_flags} -o "{build.path}/{build.project_name}.elf" {object_files} "{build.path}/{archive_file}" "-L{build.path}" -lm