projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bootloaders not disabling global interrupts during erase and write operations...
[pub/USBasp.git]
/
Demos
/
Host
/
ClassDriver
/
RNDISEthernetHost
/
RNDISEthernetHost.c
diff --git
a/Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.c
b/Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.c
index
cbbd88e
..
21afed3
100644
(file)
--- a/
Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.c
+++ b/
Demos/Host/ClassDriver/RNDISEthernetHost/RNDISEthernetHost.c
@@
-1,13
+1,13
@@
/*
LUFA Library
/*
LUFA Library
- Copyright (C) Dean Camera, 201
2
.
+ Copyright (C) Dean Camera, 201
7
.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
- Copyright 201
2
Dean Camera (dean [at] fourwalledcubicle [dot] com)
+ Copyright 201
7
Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
@@
-117,12
+117,14
@@
void RNDISHost_Task(void)
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
/** Configures the board hardware and chip peripherals for the demo's functionality. */
void SetupHardware(void)
{
+#if (ARCH == ARCH_AVR8)
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
wdt_disable();
/* Disable clock division */
clock_prescale_set(clock_div_1);
+#endif
/* Hardware Initialization */
Serial_Init(9600, false);
/* Hardware Initialization */
Serial_Init(9600, false);