diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-03-09 12:28:50 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-03-09 12:28:50 +0000 |
commit | 4a09da20989dfe0c41dc1272fa6dce1e11539c15 (patch) | |
tree | 9bff8cf677ebfda3ac8d2c691dcb55543f765b6f /Demos/Keyboard | |
parent | ddd223fa35720e360daa08e6964f20c2fb625c27 (diff) | |
parent | b0d9f961acfff498b7c4f2dc4a54ad9513d09a3b (diff) | |
download | lufa-4a09da20989dfe0c41dc1272fa6dce1e11539c15.tar.gz lufa-4a09da20989dfe0c41dc1272fa6dce1e11539c15.tar.bz2 lufa-4a09da20989dfe0c41dc1272fa6dce1e11539c15.zip |
Removed SetSystemClockPrescaler() macro, the clock_prescale_set() avr-libc macro has been corrected in recent avr-libc versions
Diffstat (limited to 'Demos/Keyboard')
-rw-r--r-- | Demos/Keyboard/Keyboard.c | 4 | ||||
-rw-r--r-- | Demos/Keyboard/Keyboard.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Demos/Keyboard/Keyboard.c b/Demos/Keyboard/Keyboard.c index 92f4ae948..22d406dbe 100644 --- a/Demos/Keyboard/Keyboard.c +++ b/Demos/Keyboard/Keyboard.c @@ -77,8 +77,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/Keyboard/Keyboard.h b/Demos/Keyboard/Keyboard.h index e1aed1ec9..6988e579a 100644 --- a/Demos/Keyboard/Keyboard.h +++ b/Demos/Keyboard/Keyboard.h @@ -41,6 +41,7 @@ #include <avr/io.h>
#include <avr/wdt.h>
#include <avr/interrupt.h>
+ #include <avr/power.h>
#include <stdbool.h>
#include <string.h>
|