summaryrefslogtreecommitdiffstats
path: root/hardware.cpp
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2007-04-18 00:10:05 +0200
committerneoraider <devnull@localhost>2007-04-18 00:10:05 +0200
commite7e1634240c78c7abbdc7fc6e0af1beddaea1d45 (patch)
treee09406ef8e02fbd7923734acb2e36d5e93d8f6db /hardware.cpp
parentd02fbc84105ff2da74f03fd658ace8919e3e9437 (diff)
downloadrc2007-rescue-e7e1634240c78c7abbdc7fc6e0af1beddaea1d45.tar
rc2007-rescue-e7e1634240c78c7abbdc7fc6e0af1beddaea1d45.zip
Linienverfolgung implementiert
Diffstat (limited to 'hardware.cpp')
-rw-r--r--hardware.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/hardware.cpp b/hardware.cpp
index aa3159a..51ae18e 100644
--- a/hardware.cpp
+++ b/hardware.cpp
@@ -19,13 +19,18 @@ void initHardware() {
DDRD = 0xFF;
PORTD = 0x00;
- TCCR0 = 0x62;
- TCCR1A = 0xA1;
- TCCR1B = 0x82;
+ TCCR0 = 0x62;
OCR0 = 0;
+
+ TCCR1A = 0xA1;
OCR1A = 0;
+
+ TCCR1B = 0x82;
OCR1B = 0;
+ TCCR2 = 0x18;
+ OCR2 = 0;
+
initADC();
initI2C();
}