From 35f5f6e99f15e0cc674c814937c82ef5fbbf86c3 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sat, 21 Nov 2009 23:23:43 +0000 Subject: Improving third-party hardware support: - moving back to multple cores per platform - using target instead of platform - moving per-board and per-programmer preferences out of Preferences.java and into a new Target class - adding a new "target" preference - support for platform:value values in board preferences for bootloader path and core - XXX: need to support platform:value syntax for board upload.using preferences. --- cores/arduino/WProgram.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 cores/arduino/WProgram.h (limited to 'cores/arduino/WProgram.h') diff --git a/cores/arduino/WProgram.h b/cores/arduino/WProgram.h new file mode 100755 index 0000000..fc14923 --- /dev/null +++ b/cores/arduino/WProgram.h @@ -0,0 +1,29 @@ +#ifndef WProgram_h +#define WProgram_h + +#include +#include +#include + +#include + +#include "wiring.h" + +#ifdef __cplusplus +#include "HardwareSerial.h" + +uint16_t makeWord(uint16_t w); +uint16_t makeWord(byte h, byte l); + +#define word(...) makeWord(__VA_ARGS__) + +unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout = 1000000L); + +// WMath prototypes +long random(long); +long random(long, long); +void randomSeed(unsigned int); +long map(long, long, long, long, long); +#endif + +#endif \ No newline at end of file -- cgit v1.2.3-18-g5258