aboutsummaryrefslogtreecommitdiff
path: root/core/WProgram.h
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2009-11-07 17:05:21 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2009-11-07 17:05:21 +0000
commit584dece7b0c982de8731f7400c94b5034aef89e7 (patch)
treef2d254ac1200e0517fc707d281c48669bec06f59 /core/WProgram.h
parent7d31607442b61b57e9cc794e7f15d6322553e3f0 (diff)
Moving things around.
Diffstat (limited to 'core/WProgram.h')
-rwxr-xr-xcore/WProgram.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/core/WProgram.h b/core/WProgram.h
new file mode 100755
index 0000000..fc14923
--- /dev/null
+++ b/core/WProgram.h
@@ -0,0 +1,29 @@
+#ifndef WProgram_h
+#define WProgram_h
+
+#include <stdlib.h>
+#include <string.h>
+#include <math.h>
+
+#include <avr/interrupt.h>
+
+#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