2005-09-25 16:11:32 +02:00
|
|
|
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
|
2006-04-14 13:09:32 +02:00
|
|
|
void delay(long);
|
|
|
|
void delayMicroseconds(unsigned int);
|
|
|
|
long millis(void);
|
2005-09-25 16:11:32 +02:00
|
|
|
|
|
|
|
// 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
|
2006-04-14 13:09:32 +02:00
|
|
|
unsigned long pulseIn(int, int);
|
2005-09-25 16:11:32 +02:00
|
|
|
|
|
|
|
// interrupt management prototypes
|
2006-04-14 13:09:32 +02:00
|
|
|
void attachInterrupt(uint8_t, void (*)(void) );
|
2005-09-25 16:11:32 +02:00
|
|
|
void detachInterrupt(uint8_t);
|
|
|
|
}
|
|
|
|
|
2006-04-14 13:09:32 +02:00
|
|
|
// random prototypes
|
|
|
|
float random(float);
|
|
|
|
float random(float, float);
|
|
|
|
void randomSeed(unsigned int);
|
2005-09-25 16:11:32 +02:00
|
|
|
|