diff options
Diffstat (limited to 'Demos/MIDI')
-rw-r--r-- | Demos/MIDI/MIDI.c | 4 | ||||
-rw-r--r-- | Demos/MIDI/MIDI.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Demos/MIDI/MIDI.c b/Demos/MIDI/MIDI.c index a9c827a0d..c0e4f9df9 100644 --- a/Demos/MIDI/MIDI.c +++ b/Demos/MIDI/MIDI.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/MIDI/MIDI.h b/Demos/MIDI/MIDI.h index 1775c6374..733a7baed 100644 --- a/Demos/MIDI/MIDI.h +++ b/Demos/MIDI/MIDI.h @@ -39,6 +39,7 @@ /* Includes: */
#include <avr/io.h>
#include <avr/wdt.h>
+ #include <avr/power.h>
#include <stdbool.h>
#include "Descriptors.h"
|