aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/CDC
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/CDC')
-rw-r--r--Demos/CDC/CDC.c4
-rw-r--r--Demos/CDC/CDC.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/Demos/CDC/CDC.c b/Demos/CDC/CDC.c
index 6e232a48b..eeae625cf 100644
--- a/Demos/CDC/CDC.c
+++ b/Demos/CDC/CDC.c
@@ -87,8 +87,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/CDC/CDC.h b/Demos/CDC/CDC.h
index 98f30b52f..d953303f7 100644
--- a/Demos/CDC/CDC.h
+++ b/Demos/CDC/CDC.h
@@ -39,6 +39,7 @@
/* Includes: */
#include <avr/io.h>
#include <avr/wdt.h>
+ #include <avr/power.h>
#include <string.h>
#include "Descriptors.h"