Small size improvement in the Printer and Mass Storage class bootloaders.
authorDean Camera <dean@fourwalledcubicle.com>
Wed, 13 Mar 2013 21:19:31 +0000 (21:19 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Wed, 13 Mar 2013 21:19:31 +0000 (21:19 +0000)
Bootloaders/MassStorage/BootloaderMassStorage.c
Bootloaders/MassStorage/BootloaderMassStorage.h
Bootloaders/Printer/BootloaderPrinter.c
Bootloaders/Printer/BootloaderPrinter.h

index 9303471..7adeace 100644 (file)
@@ -79,7 +79,7 @@ int main(void)
 }
 
 /** Configures the board hardware and chip peripherals for the demo's functionality. */
 }
 
 /** 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);
 {
        /* 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;
 }
 
        return CommandSuccess;
 }
-
index 64241a2..b12cbaf 100644 (file)
@@ -67,7 +67,7 @@
                #define LEDMASK_USB_BUSY          LEDS_LED2
 
        /* Function Prototypes: */
                #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);
 
                void EVENT_USB_Device_Connect(void);
                void EVENT_USB_Device_Disconnect(void);
index 7741f80..0e1fbba 100644 (file)
@@ -299,7 +299,7 @@ int main(void)
 }
 
 /** Configures the board hardware and chip peripherals for the demo's functionality. */
 }
 
 /** 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);
 {
        /* Disable watchdog if enabled by bootloader/fuses */
        MCUSR &= ~(1 << WDRF);
index fcbd8d7..8582d84 100644 (file)
@@ -88,7 +88,7 @@
                };
 
        /* Function Prototypes: */
                };
 
        /* Function Prototypes: */
-               void SetupHardware(void);
+               static void SetupHardware(void);
 
                void EVENT_USB_Device_Connect(void);
                void EVENT_USB_Device_Disconnect(void);
 
                void EVENT_USB_Device_Connect(void);
                void EVENT_USB_Device_Disconnect(void);