diff options
author | sicarius <devnull@localhost> | 2007-02-17 01:35:01 +0100 |
---|---|---|
committer | sicarius <devnull@localhost> | 2007-02-17 01:35:01 +0100 |
commit | 4a2ba4b7105d168932163cbd07a062fdf2ba00e9 (patch) | |
tree | 1891a3eab64be1ae1a31e1b882ad9e6ce356620e /source/AVR_Studio/Soccer/hal/board.h | |
parent | 37d4d23f1dca88b6d074fb09739c9ae071551694 (diff) | |
download | rc2007-soccer-4a2ba4b7105d168932163cbd07a062fdf2ba00e9.tar rc2007-soccer-4a2ba4b7105d168932163cbd07a062fdf2ba00e9.zip |
+++ enhanced framework hardware interface
Diffstat (limited to 'source/AVR_Studio/Soccer/hal/board.h')
-rwxr-xr-x | source/AVR_Studio/Soccer/hal/board.h | 14 |
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
|