aboutsummaryrefslogtreecommitdiff
path: root/Bootloaders/DFU/BootloaderDFU.c
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2012-01-29 14:37:30 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2012-01-29 14:37:30 +0000
commit7c992b42a13933c22f43099ccc2456506498e4b2 (patch)
tree177ab9e8313d3fa98c0d3aecbdb78b3d73f1cdfa /Bootloaders/DFU/BootloaderDFU.c
parent4478a62f1160b53f57acecf68c182a67ad8a6bd2 (diff)
Fixed DFU class bootloader not resetting the LED pins as high impedance inputs when a software jump to the user applications is requested.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2014 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Bootloaders/DFU/BootloaderDFU.c')
-rw-r--r--Bootloaders/DFU/BootloaderDFU.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Bootloaders/DFU/BootloaderDFU.c b/Bootloaders/DFU/BootloaderDFU.c
index ba045856..f3b36db6 100644
--- a/Bootloaders/DFU/BootloaderDFU.c
+++ b/Bootloaders/DFU/BootloaderDFU.c
@@ -150,7 +150,7 @@ static void SetupHardware(void)
MCUCR = (1 << IVCE);
MCUCR = (1 << IVSEL);
- /* Initialize the USB subsystem */
+ /* Initialize the USB and other board hardware drivers */
USB_Init();
LEDs_Init();
@@ -162,8 +162,9 @@ static void SetupHardware(void)
/** Resets all configured hardware required for the bootloader back to their original states. */
static void ResetHardware(void)
{
- /* Shut down the USB subsystem */
+ /* Shut down the USB and other board hardware drivers */
USB_Disable();
+ LEDs_Disable();
/* Relocate the interrupt vector table back to the application section */
MCUCR = (1 << IVCE);