diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2013-03-13 21:19:31 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2013-03-13 21:19:31 +0000 |
commit | e635872612fb054791a121a2920432574b9245bb (patch) | |
tree | ce29796caeebb3dc575bf40146fb8fa5f3a9ba5c /Bootloaders | |
parent | cb4e4a711e4d49aa2d0e413226c81318965510f2 (diff) | |
download | lufa-e635872612fb054791a121a2920432574b9245bb.tar.gz lufa-e635872612fb054791a121a2920432574b9245bb.tar.bz2 lufa-e635872612fb054791a121a2920432574b9245bb.zip |
Small size improvement in the Printer and Mass Storage class bootloaders.
Diffstat (limited to 'Bootloaders')
-rw-r--r-- | Bootloaders/MassStorage/BootloaderMassStorage.c | 3 | ||||
-rw-r--r-- | Bootloaders/MassStorage/BootloaderMassStorage.h | 2 | ||||
-rw-r--r-- | Bootloaders/Printer/BootloaderPrinter.c | 2 | ||||
-rw-r--r-- | Bootloaders/Printer/BootloaderPrinter.h | 2 |
4 files changed, 4 insertions, 5 deletions
diff --git a/Bootloaders/MassStorage/BootloaderMassStorage.c b/Bootloaders/MassStorage/BootloaderMassStorage.c index 9303471bf..7adeaced7 100644 --- a/Bootloaders/MassStorage/BootloaderMassStorage.c +++ b/Bootloaders/MassStorage/BootloaderMassStorage.c @@ -79,7 +79,7 @@ int main(void) } /** Configures the board hardware and chip peripherals for the demo's functionality. */ -void SetupHardware(void) +static void SetupHardware(void) { /* Disable watchdog if enabled by bootloader/fuses */ MCUSR &= ~(1 << WDRF); @@ -155,4 +155,3 @@ bool CALLBACK_MS_Device_SCSICommandReceived(USB_ClassInfo_MS_Device_t* const MSI return CommandSuccess; } - diff --git a/Bootloaders/MassStorage/BootloaderMassStorage.h b/Bootloaders/MassStorage/BootloaderMassStorage.h index 64241a2b8..b12cbafe5 100644 --- a/Bootloaders/MassStorage/BootloaderMassStorage.h +++ b/Bootloaders/MassStorage/BootloaderMassStorage.h @@ -67,7 +67,7 @@ #define LEDMASK_USB_BUSY LEDS_LED2 /* Function Prototypes: */ - void SetupHardware(void); + static void SetupHardware(void); void EVENT_USB_Device_Connect(void); void EVENT_USB_Device_Disconnect(void); diff --git a/Bootloaders/Printer/BootloaderPrinter.c b/Bootloaders/Printer/BootloaderPrinter.c index 7741f8087..0e1fbba42 100644 --- a/Bootloaders/Printer/BootloaderPrinter.c +++ b/Bootloaders/Printer/BootloaderPrinter.c @@ -299,7 +299,7 @@ int main(void) } /** Configures the board hardware and chip peripherals for the demo's functionality. */ -void SetupHardware(void) +static void SetupHardware(void) { /* Disable watchdog if enabled by bootloader/fuses */ MCUSR &= ~(1 << WDRF); diff --git a/Bootloaders/Printer/BootloaderPrinter.h b/Bootloaders/Printer/BootloaderPrinter.h index fcbd8d765..8582d84b8 100644 --- a/Bootloaders/Printer/BootloaderPrinter.h +++ b/Bootloaders/Printer/BootloaderPrinter.h @@ -88,7 +88,7 @@ }; /* Function Prototypes: */ - void SetupHardware(void); + static void SetupHardware(void); void EVENT_USB_Device_Connect(void); void EVENT_USB_Device_Disconnect(void); |