From 29618453d22c694a0dcb9541b2cea3ee32928fbb Mon Sep 17 00:00:00 2001 From: sicarius Date: Wed, 14 Feb 2007 17:47:03 +0000 Subject: Code-Work by Marian --- source/AVR_Studio/Soccer/hal/board.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'source/AVR_Studio/Soccer/hal/board.h') 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 #include #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(); -- cgit v1.2.3