diff options
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();
|