diff options
Diffstat (limited to 'Demos/DualCDC')
-rw-r--r-- | Demos/DualCDC/DualCDC.c | 4 | ||||
-rw-r--r-- | Demos/DualCDC/DualCDC.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Demos/DualCDC/DualCDC.c b/Demos/DualCDC/DualCDC.c index 90f00997e..8e6e38907 100644 --- a/Demos/DualCDC/DualCDC.c +++ b/Demos/DualCDC/DualCDC.c @@ -101,8 +101,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 */
Joystick_Init();
diff --git a/Demos/DualCDC/DualCDC.h b/Demos/DualCDC/DualCDC.h index 5a01e07f7..4c62abf9d 100644 --- a/Demos/DualCDC/DualCDC.h +++ b/Demos/DualCDC/DualCDC.h @@ -39,6 +39,7 @@ /* Includes: */
#include <avr/io.h>
#include <avr/wdt.h>
+ #include <avr/power.h>
#include <string.h>
#include "Descriptors.h"
|