projects
/
svn42.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
082cf65
)
fixed timer0 bug
author
Christian Pointner
<equinox@realraum.at>
Sun, 26 Apr 2009 23:45:04 +0000
(23:45 +0000)
committer
Christian Pointner
<equinox@realraum.at>
Sun, 26 Apr 2009 23:45:04 +0000
(23:45 +0000)
firmware/tuer.pde
patch
|
blob
|
history
diff --git
a/firmware/tuer.pde
b/firmware/tuer.pde
index
c0c4bf1
..
314ade2
100644
(file)
--- a/
firmware/tuer.pde
+++ b/
firmware/tuer.pde
@@
-109,7
+109,7
@@
void start_debounce_timer() // this breaks millis() function, but who cares
debounce_cnt = DEBOUNCE_DELAY;
TCCR0A = 0; // no prescaler, WGM = 0 (normal)
- TCCR0B = 1<<WGM01; //
+ TCCR0B = 1<<CS00; //
OCR0A = 255; // 1+255 = 256 -> 16us @ 16 MHz
TCNT0 = 0; // reseting timer
TIMSK0 = 1<<OCF0A; // enable Interrupt