diff options
Diffstat (limited to 'Demos/CDCHost')
-rw-r--r-- | Demos/CDCHost/CDCHost.c | 4 | ||||
-rw-r--r-- | Demos/CDCHost/CDCHost.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Demos/CDCHost/CDCHost.c b/Demos/CDCHost/CDCHost.c index ac6d89ad1..1f05ecb1f 100644 --- a/Demos/CDCHost/CDCHost.c +++ b/Demos/CDCHost/CDCHost.c @@ -59,8 +59,8 @@ int main(void) MCUSR &= ~(1 << WDRF);
wdt_disable();
- /* Disable Clock Division */
- SetSystemClockPrescaler(0);
+ /* Disable clock division */
+ clock_prescale_set(clock_div_1);
/* Hardware Initialization */
SerialStream_Init(9600, false);
diff --git a/Demos/CDCHost/CDCHost.h b/Demos/CDCHost/CDCHost.h index 2adbefd30..21b9d67ed 100644 --- a/Demos/CDCHost/CDCHost.h +++ b/Demos/CDCHost/CDCHost.h @@ -40,6 +40,7 @@ #include <avr/io.h>
#include <avr/wdt.h>
#include <avr/pgmspace.h>
+ #include <avr/power.h>
#include <stdio.h>
#include <LUFA/Version.h> // Library Version Information
|