2008-09-15 21:09:13 +00:00
|
|
|
#ifndef WProgram_h
|
|
|
|
#define WProgram_h
|
|
|
|
|
2006-04-14 11:53:56 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2007-09-23 16:06:28 +00:00
|
|
|
#include <math.h>
|
2006-04-14 11:53:56 +00:00
|
|
|
|
|
|
|
#include <avr/interrupt.h>
|
2005-09-25 14:11:32 +00:00
|
|
|
|
|
|
|
#include "wiring.h"
|
2006-08-13 09:59:06 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2006-03-23 14:16:00 +00:00
|
|
|
#include "HardwareSerial.h"
|
2005-09-25 14:11:32 +00:00
|
|
|
|
2008-10-26 12:31:45 +00:00
|
|
|
uint16_t makeWord(uint16_t w);
|
|
|
|
uint16_t makeWord(byte h, byte l);
|
2008-10-25 12:52:07 +00:00
|
|
|
|
|
|
|
#define word(...) makeWord(__VA_ARGS__)
|
|
|
|
|
2008-03-08 21:30:00 +00:00
|
|
|
unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout = 1000000L);
|
|
|
|
|
2007-11-21 17:08:07 +00:00
|
|
|
// WMath prototypes
|
2006-08-13 09:59:06 +00:00
|
|
|
long random(long);
|
|
|
|
long random(long, long);
|
|
|
|
void randomSeed(unsigned int);
|
2007-11-21 17:08:07 +00:00
|
|
|
long map(long, long, long, long, long);
|
2007-04-20 23:17:38 +00:00
|
|
|
#endif
|
2008-09-15 21:09:13 +00:00
|
|
|
|
|
|
|
#endif
|