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