diff options
author | neoraider <devnull@localhost> | 2007-04-03 14:48:00 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-04-03 14:48:00 +0200 |
commit | dc1306244e3a7853c31cd94c5ac3d97aa6e6c0d5 (patch) | |
tree | 758cc525af6b6fca0af22482ec51c70017dbb7fc /hardware.h | |
download | rc2007-rescue-dc1306244e3a7853c31cd94c5ac3d97aa6e6c0d5.tar rc2007-rescue-dc1306244e3a7853c31cd94c5ac3d97aa6e6c0d5.zip |
Neues Rescue-Programm angefangen (2)
Diffstat (limited to 'hardware.h')
-rw-r--r-- | hardware.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/hardware.h b/hardware.h new file mode 100644 index 0000000..9b2bcb7 --- /dev/null +++ b/hardware.h @@ -0,0 +1,24 @@ +#ifndef _ROBOCUP_HARDWARE_H_ +#define _ROBOCUP_HARDWARE_H_ + +#include "avr.h" + +#include <avr/io.h> + + +static const MOTOR MOTOR1 = { + &PORTD, &OCR1BL, 0x01, 0x02 +}; + +static const MOTOR MOTOR2 = { + &PORTD, &OCR1AL, 0x04, 0x08 +}; + +static const MOTOR MOTOR3 = { + &PORTB, &OCR0, 0x01, 0x02 +}; + + +void initHardware(); + +#endif |