diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-01-27 13:15:49 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-01-27 13:15:49 +0000 |
commit | a960e4b3b2ae72c6c3573fb690a1b9cde1642bc0 (patch) | |
tree | 97eeeedafe3c60ce692f6eec00e9427866a4b8d1 /Projects/Webserver/Lib/uip/conf/clock-arch.c | |
parent | 1aeb5056d6943331ee2d11807bcc0a6480ad1ca0 (diff) | |
download | lufa-a960e4b3b2ae72c6c3573fb690a1b9cde1642bc0.tar.gz lufa-a960e4b3b2ae72c6c3573fb690a1b9cde1642bc0.tar.bz2 lufa-a960e4b3b2ae72c6c3573fb690a1b9cde1642bc0.zip |
Add DHCP server to the Webserver demo for automatic network configuration. Correct uIP timer clock not tracking the correct timespan.
Diffstat (limited to 'Projects/Webserver/Lib/uip/conf/clock-arch.c')
-rw-r--r-- | Projects/Webserver/Lib/uip/conf/clock-arch.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Projects/Webserver/Lib/uip/conf/clock-arch.c b/Projects/Webserver/Lib/uip/conf/clock-arch.c index 8363d96e0..2007de4e9 100644 --- a/Projects/Webserver/Lib/uip/conf/clock-arch.c +++ b/Projects/Webserver/Lib/uip/conf/clock-arch.c @@ -21,8 +21,7 @@ ISR(TIMER1_COMPA_vect) void clock_init()
{
OCR1A = ((F_CPU / 1024) / 100); - TCCR1A = (1 << WGM12); - TCCR1B = ((1 << CS12) | (1 << CS10)); + TCCR1B = ((1 << WGM12) | (1 << CS12) | (1 << CS10)); TIMSK1 = (1 << OCIE1A); } |