aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/BluetoothHost
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-03-09 12:28:50 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-03-09 12:28:50 +0000
commit4a09da20989dfe0c41dc1272fa6dce1e11539c15 (patch)
tree9bff8cf677ebfda3ac8d2c691dcb55543f765b6f /Demos/BluetoothHost
parentddd223fa35720e360daa08e6964f20c2fb625c27 (diff)
parentb0d9f961acfff498b7c4f2dc4a54ad9513d09a3b (diff)
downloadlufa-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/BluetoothHost')
-rw-r--r--Demos/BluetoothHost/BluetoothHost.c4
-rw-r--r--Demos/BluetoothHost/BluetoothHost.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/Demos/BluetoothHost/BluetoothHost.c b/Demos/BluetoothHost/BluetoothHost.c
index 50bd1a8fe..2e5ae44d2 100644
--- a/Demos/BluetoothHost/BluetoothHost.c
+++ b/Demos/BluetoothHost/BluetoothHost.c
@@ -74,8 +74,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 */
SerialStream_Init(9600, false);
diff --git a/Demos/BluetoothHost/BluetoothHost.h b/Demos/BluetoothHost/BluetoothHost.h
index 5fe9dbd1e..51d417356 100644
--- a/Demos/BluetoothHost/BluetoothHost.h
+++ b/Demos/BluetoothHost/BluetoothHost.h
@@ -35,6 +35,7 @@
#include <avr/io.h>
#include <avr/wdt.h>
#include <avr/pgmspace.h>
+ #include <avr/power.h>
#include <stdio.h>
#include "BluetoothStack.h"