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.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/source/AVR_Studio/Soccer/hal/board.h b/source/AVR_Studio/Soccer/hal/board.h
index a76aeb7..e608836 100755
--- a/source/AVR_Studio/Soccer/hal/board.h
+++ b/source/AVR_Studio/Soccer/hal/board.h
@@ -4,7 +4,7 @@
#include <avr/io.h>
#include <avr/interrupt.h>
#include <stdlib.h>
-#include "uart.h"
+//#include "uart.h"
#include "../global.h"
//#define abs(a) ((a < 0)? -a : a)
@@ -26,10 +26,12 @@
#define MOTOR2_PWM OCR3A
#define MOTOR2_A (1 << 5)
#define MOTOR2_B (1 << 4)
-
+
+
+// Dribbler
#define DRIBBLER_PORT PORTD
-#define DRIBBLER_PWMPORT PORTA
-#define DRIBBLER_PWM (1 << 5)
+#define DRIBBLER_AN PORTA |= (1 << 5);
+#define DRIBBLER_AUS PORTA &= ~(1 << 5);
#define DRIBBLER_A (1 << 6)
#define DRIBBLER_B (1 << 7)
@@ -62,6 +64,10 @@ public:
void led(bool status);
void motor(int i, int speed);
void kicker();
+
+ void dribbler(bool status);
+ void dribblerOn();
+ void dribblerOff();
};
#endif