summaryrefslogtreecommitdiffstats
path: root/source/AVR_Studio/Soccer/hal/board.h
diff options
context:
space:
mode:
authorsicarius <devnull@localhost>2007-02-14 18:47:03 +0100
committersicarius <devnull@localhost>2007-02-14 18:47:03 +0100
commit29618453d22c694a0dcb9541b2cea3ee32928fbb (patch)
tree00f7d1c86c904d3a65bd52438e1fabc3fdf3f5df /source/AVR_Studio/Soccer/hal/board.h
parentab9cf92c1a0f1d400e7f46a346c47d952ea376cc (diff)
downloadrc2007-soccer-29618453d22c694a0dcb9541b2cea3ee32928fbb.tar
rc2007-soccer-29618453d22c694a0dcb9541b2cea3ee32928fbb.zip
Code-Work by Marian
Diffstat (limited to 'source/AVR_Studio/Soccer/hal/board.h')
-rwxr-xr-xsource/AVR_Studio/Soccer/hal/board.h10
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();