diff options
author | meyma <devnull@localhost> | 2007-02-13 20:43:03 +0100 |
---|---|---|
committer | meyma <devnull@localhost> | 2007-02-13 20:43:03 +0100 |
commit | 0dbbdb4db3451d4074322fb6c65524882edba992 (patch) | |
tree | 891ad6ea2aa14ea4fe103942132c7d1bca7b6c60 /source/AVR_Studio/Soccer/hal/board.h | |
parent | 5c33efe58da97d1277f8615ef750c0695497c0b9 (diff) | |
download | rc2007-soccer-0dbbdb4db3451d4074322fb6c65524882edba992.tar rc2007-soccer-0dbbdb4db3451d4074322fb6c65524882edba992.zip |
Motoransteuerung lesbarer gemacht
Diffstat (limited to 'source/AVR_Studio/Soccer/hal/board.h')
-rwxr-xr-x | source/AVR_Studio/Soccer/hal/board.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/source/AVR_Studio/Soccer/hal/board.h b/source/AVR_Studio/Soccer/hal/board.h index dd177f1..03df24f 100755 --- a/source/AVR_Studio/Soccer/hal/board.h +++ b/source/AVR_Studio/Soccer/hal/board.h @@ -10,11 +10,26 @@ #define BEEPER_PIN PG2
-// Definiere PWM-Ports für die Motoren/Dribbler
-#define MOTOR0_PWM OCR3A
-#define MOTOR1_PWM OCR3B
-#define MOTOR2_PWM OCR1A
-#define DRIBBLER_PWM OCR1C
+// Definiere Konstanten für die Motoren/Dribbler +#define MOTOR0_PORT PORTD
+#define MOTOR0_PWM OCR3A +#define MOTOR0_A (1 << 5) +#define MOTOR0_B (1 << 4) + +#define MOTOR1_PORT PORTD
+#define MOTOR1_PWM OCR3B +#define MOTOR1_A (1 << 6) +#define MOTOR1_B (1 << 7) + +#define MOTOR2_PORT PORTB
+#define MOTOR2_PWM OCR1A +#define MOTOR2_A (1 << 0) +#define MOTOR2_B (1 << 1) + +#define DRIBBLER_PORT PORTB
+#define DRIBBLER_PWM OCR1C +#define DRIBBLER_A (1 << 2) +#define DRIBBLER_B (1 << 3)
#define UART_BAUD_RATE 9600
|