diff options
author | sicarius <devnull@localhost> | 2007-02-14 18:47:03 +0100 |
---|---|---|
committer | sicarius <devnull@localhost> | 2007-02-14 18:47:03 +0100 |
commit | 29618453d22c694a0dcb9541b2cea3ee32928fbb (patch) | |
tree | 00f7d1c86c904d3a65bd52438e1fabc3fdf3f5df /source/AVR_Studio/Soccer/hal/board.h | |
parent | ab9cf92c1a0f1d400e7f46a346c47d952ea376cc (diff) | |
download | rc2007-soccer-29618453d22c694a0dcb9541b2cea3ee32928fbb.tar rc2007-soccer-29618453d22c694a0dcb9541b2cea3ee32928fbb.zip |
Code-Work by Marian
Diffstat (limited to 'source/AVR_Studio/Soccer/hal/board.h')
-rwxr-xr-x | source/AVR_Studio/Soccer/hal/board.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/AVR_Studio/Soccer/hal/board.h b/source/AVR_Studio/Soccer/hal/board.h index 03df24f..445ffa4 100755 --- a/source/AVR_Studio/Soccer/hal/board.h +++ b/source/AVR_Studio/Soccer/hal/board.h @@ -5,6 +5,7 @@ #include <avr/interrupt.h>
#include <stdlib.h>
#include "uart.h"
+#include "../global.h"
//#define abs(a) ((a < 0)? -a : a)
@@ -31,6 +32,11 @@ #define DRIBBLER_A (1 << 2) #define DRIBBLER_B (1 << 3)
+// Definiere Konstanten für Abstandsensoren
+#define ABSTAND_PORT PORTC
+#define ABSTAND_DDR DDRC
+#define ABSTAND_PIN PINC
+
#define UART_BAUD_RATE 9600
class Board
@@ -40,7 +46,9 @@ public: Board();
~Board();
- int GetADC(uint8_t channel);
+ int GetADC(uint8_t channel);
+ int GetAbstand(int i);
+
void beep(int freq);
void ledOn();
void ledOff();
|