diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2012-05-29 19:40:05 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2012-05-29 19:40:05 +0000 |
| commit | 8b0f9535800a6d738b4eb58cb66a18b07f56463c (patch) | |
| tree | a524204e69920767f78459304d4c5eade527970d /Bootloaders | |
| parent | 929ed45bcec418fddaf4b29aecd763c83edcc2da (diff) | |
Ensure the DFU bootloader disables and clears the activity LED toggle timer when a soft-reset to application space is used.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2253 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Bootloaders')
| -rw-r--r-- | Bootloaders/DFU/BootloaderDFU.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Bootloaders/DFU/BootloaderDFU.c b/Bootloaders/DFU/BootloaderDFU.c index 528e8cb0..32b6eace 100644 --- a/Bootloaders/DFU/BootloaderDFU.c +++ b/Bootloaders/DFU/BootloaderDFU.c @@ -193,6 +193,10 @@ static void ResetHardware(void) /* Shut down the USB and other board hardware drivers */ USB_Disable(); LEDs_Disable(); + + /* Disable Bootloader active LED toggle timer */ + TIMSK1 = 0; + TCCR1B = 0; /* Relocate the interrupt vector table back to the application section */ MCUCR = (1 << IVCE); |
