aboutsummaryrefslogtreecommitdiff
path: root/targets/wiring/WProgram.h
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2007-10-06 14:09:02 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2007-10-06 14:09:02 +0000
commit72e9f39fbde96b484338cbbd785680e5ab4a2e72 (patch)
treebd441d569bf70c9697ccfbee7c70fa26d67be3a0 /targets/wiring/WProgram.h
parentb86a6e051920a4ffdb92bc5b8de7260ff3978117 (diff)
Renaming core to targets.
Diffstat (limited to 'targets/wiring/WProgram.h')
-rwxr-xr-xtargets/wiring/WProgram.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/targets/wiring/WProgram.h b/targets/wiring/WProgram.h
new file mode 100755
index 0000000..7837da5
--- /dev/null
+++ b/targets/wiring/WProgram.h
@@ -0,0 +1,39 @@
+extern "C" {
+ #include <inttypes.h>
+ #include <math.h>
+ #include <avr/io.h>
+
+ #include "WConstants.h"
+
+ // main program prototypes
+ void setup(void);
+ void loop(void);
+
+ // timing prototypes
+ void delay(long);
+ void delayMicroseconds(unsigned int);
+ long millis(void);
+
+ // pin prototypes
+ void pinMode(uint8_t, uint8_t);
+ uint8_t digitalRead(uint8_t);
+ void digitalWrite(int, uint8_t);
+ void portMode(int, int);
+ int portRead(int);
+ void portWrite(int, int);
+ int analogRead(int);
+ void analogWrite(int, int);
+
+ // pulse prototypes
+ unsigned long pulseIn(int, int);
+
+ // interrupt management prototypes
+ void attachInterrupt(uint8_t, void (*)(void) );
+ void detachInterrupt(uint8_t);
+}
+
+// random prototypes
+float random(float);
+float random(float, float);
+void randomSeed(unsigned int);
+