projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor documentation corrections.
[pub/USBasp.git]
/
Bootloaders
/
DFU
/
BootloaderDFU.c
diff --git
a/Bootloaders/DFU/BootloaderDFU.c
b/Bootloaders/DFU/BootloaderDFU.c
index
0948019
..
f3b36db
100644
(file)
--- a/
Bootloaders/DFU/BootloaderDFU.c
+++ b/
Bootloaders/DFU/BootloaderDFU.c
@@
-137,7
+137,7
@@
int main(void)
}
/** Configures all hardware required for the bootloader. */
}
/** Configures all hardware required for the bootloader. */
-void SetupHardware(void)
+
static
void SetupHardware(void)
{
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
{
/* Disable watchdog if enabled by bootloader/fuses */
MCUSR &= ~(1 << WDRF);
@@
-150,7
+150,7
@@
void SetupHardware(void)
MCUCR = (1 << IVCE);
MCUCR = (1 << IVSEL);
MCUCR = (1 << IVCE);
MCUCR = (1 << IVSEL);
- /* Initialize the USB
subsystem
*/
+ /* Initialize the USB
and other board hardware drivers
*/
USB_Init();
LEDs_Init();
USB_Init();
LEDs_Init();
@@
-160,10
+160,11
@@
void SetupHardware(void)
}
/** Resets all configured hardware required for the bootloader back to their original states. */
}
/** Resets all configured hardware required for the bootloader back to their original states. */
-void ResetHardware(void)
+
static
void ResetHardware(void)
{
{
- /* Shut down the USB
subsystem
*/
+ /* Shut down the USB
and other board hardware drivers
*/
USB_Disable();
USB_Disable();
+ LEDs_Disable();
/* Relocate the interrupt vector table back to the application section */
MCUCR = (1 << IVCE);
/* Relocate the interrupt vector table back to the application section */
MCUCR = (1 << IVCE);