Add DHCP server to the Webserver demo for automatic network configuration. Correct uIP timer clock not tracking the correct timespan.
This commit is contained in:
parent
1aeb5056d6
commit
a960e4b3b2
15 changed files with 471 additions and 43 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue