projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added board hardware driver support for the Adafruit U4 breakout board.
[pub/lufa.git]
/
Projects
/
Webserver
/
Lib
/
uip
/
clock.c
diff --git
a/Projects/Webserver/Lib/uip/clock.c
b/Projects/Webserver/Lib/uip/clock.c
index
8632296
..
0906e61
100644
(file)
--- a/
Projects/Webserver/Lib/uip/clock.c
+++ b/
Projects/Webserver/Lib/uip/clock.c
@@
-19,7
+19,7
@@
ISR(TIMER1_COMPA_vect)
//Initialise the clock
void clock_init()
{
- OCR1A = ((
F_CPU / 1024) / 100
);
+ OCR1A = ((
(F_CPU / 1024) / 100) - 1
);
TCCR1B = ((1 << WGM12) | (1 << CS12) | (1 << CS10));
TIMSK1 = (1 << OCIE1A);
}