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