aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/RNDISEthernet
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/RNDISEthernet')
-rw-r--r--Demos/RNDISEthernet/RNDISEthernet.c4
-rw-r--r--Demos/RNDISEthernet/RNDISEthernet.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/Demos/RNDISEthernet/RNDISEthernet.c b/Demos/RNDISEthernet/RNDISEthernet.c
index 255a53b3d..3f9bb187a 100644
--- a/Demos/RNDISEthernet/RNDISEthernet.c
+++ b/Demos/RNDISEthernet/RNDISEthernet.c
@@ -60,8 +60,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 */
LEDs_Init();
diff --git a/Demos/RNDISEthernet/RNDISEthernet.h b/Demos/RNDISEthernet/RNDISEthernet.h
index 4a0f3c183..83e49ce84 100644
--- a/Demos/RNDISEthernet/RNDISEthernet.h
+++ b/Demos/RNDISEthernet/RNDISEthernet.h
@@ -39,9 +39,10 @@
/* Includes: */
#include <avr/io.h>
#include <avr/wdt.h>
+ #include <avr/pgmspace.h>
+ #include <avr/power.h>
#include <string.h>
#include <stdio.h>
- #include <avr/pgmspace.h>
#include "Descriptors.h"
#include "RNDIS.h"