summaryrefslogtreecommitdiffstats
path: root/source/AVR_Studio/Soccer/hal/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/AVR_Studio/Soccer/hal/board.h')
-rwxr-xr-xsource/AVR_Studio/Soccer/hal/board.h25
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