From 5f3976696ddf5d02ea7e6f805ce655e1f281e6ed Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sat, 6 Oct 2007 14:47:50 +0000 Subject: Moving hardware/targets to hardware/cores. --- cores/wiring/WProgram.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 cores/wiring/WProgram.h (limited to 'cores/wiring/WProgram.h') diff --git a/cores/wiring/WProgram.h b/cores/wiring/WProgram.h new file mode 100755 index 0000000..7837da5 --- /dev/null +++ b/cores/wiring/WProgram.h @@ -0,0 +1,39 @@ +extern "C" { + #include + #include + #include + + #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); + -- cgit v1.2.3-18-g5258