aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Joystick
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/Joystick')
-rw-r--r--Demos/Joystick/Joystick.c4
-rw-r--r--Demos/Joystick/Joystick.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/Demos/Joystick/Joystick.c b/Demos/Joystick/Joystick.c
index 88d415843..cd8822705 100644
--- a/Demos/Joystick/Joystick.c
+++ b/Demos/Joystick/Joystick.c
@@ -58,8 +58,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/Joystick/Joystick.h b/Demos/Joystick/Joystick.h
index 966fa7e10..79c7e498f 100644
--- a/Demos/Joystick/Joystick.h
+++ b/Demos/Joystick/Joystick.h
@@ -39,6 +39,7 @@
/* Includes: */
#include <avr/io.h>
#include <avr/wdt.h>
+ #include <avr/power.h>
#include <string.h>
#include "Descriptors.h"