diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2012-07-07 15:30:35 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2012-07-07 15:30:35 +0000 |
commit | 56d368f2de56a634f3c486971b935bdd87761a84 (patch) | |
tree | 0fa4a1c704f15f58432cb511c09dde67daf1c5a7 /Bootloaders | |
parent | 10944d9ddf80235bcc38cd9548e82604d5b72bb4 (diff) | |
download | lufa-56d368f2de56a634f3c486971b935bdd87761a84.tar.gz lufa-56d368f2de56a634f3c486971b935bdd87761a84.tar.bz2 lufa-56d368f2de56a634f3c486971b935bdd87761a84.zip |
Reduce bootloader magic key to 16 bits to save FLASH space.
Diffstat (limited to 'Bootloaders')
-rw-r--r-- | Bootloaders/CDC/BootloaderCDC.c | 2 | ||||
-rw-r--r-- | Bootloaders/CDC/BootloaderCDC.h | 2 | ||||
-rw-r--r-- | Bootloaders/DFU/BootloaderDFU.c | 2 | ||||
-rw-r--r-- | Bootloaders/DFU/BootloaderDFU.h | 2 | ||||
-rw-r--r-- | Bootloaders/HID/BootloaderHID.c | 2 | ||||
-rw-r--r-- | Bootloaders/HID/BootloaderHID.h | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/Bootloaders/CDC/BootloaderCDC.c b/Bootloaders/CDC/BootloaderCDC.c index dcfa978e3..af778c76f 100644 --- a/Bootloaders/CDC/BootloaderCDC.c +++ b/Bootloaders/CDC/BootloaderCDC.c @@ -61,7 +61,7 @@ static bool RunBootloader = true; * low when the application attempts to start via a watchdog reset, the bootloader will re-start. If set to the value * \ref MAGIC_BOOT_KEY the special init function \ref Application_Jump_Check() will force the application to start. */ -uint32_t MagicBootKey ATTR_NO_INIT; +uint16_t MagicBootKey ATTR_NO_INIT; /** Special startup routine to check if the bootloader was started via a watchdog reset, and if the magic application diff --git a/Bootloaders/CDC/BootloaderCDC.h b/Bootloaders/CDC/BootloaderCDC.h index 36af96216..d8c9c1c42 100644 --- a/Bootloaders/CDC/BootloaderCDC.h +++ b/Bootloaders/CDC/BootloaderCDC.h @@ -69,7 +69,7 @@ #define SOFTWARE_IDENTIFIER "LUFACDC" /** Magic bootloader key to unlock forced application start mode. */ - #define MAGIC_BOOT_KEY 0xDC42CACA + #define MAGIC_BOOT_KEY 0xDC42 /* Type Defines: */ /** Type define for a non-returning pointer to the start of the loaded application in flash memory. */ diff --git a/Bootloaders/DFU/BootloaderDFU.c b/Bootloaders/DFU/BootloaderDFU.c index 64850e3bb..fcacf76cb 100644 --- a/Bootloaders/DFU/BootloaderDFU.c +++ b/Bootloaders/DFU/BootloaderDFU.c @@ -97,7 +97,7 @@ static uint16_t EndAddr = 0x0000; * low when the application attempts to start via a watchdog reset, the bootloader will re-start. If set to the value * \ref MAGIC_BOOT_KEY the special init function \ref Application_Jump_Check() will force the application to start. */ -uint32_t MagicBootKey ATTR_NO_INIT; +uint16_t MagicBootKey ATTR_NO_INIT; /** Special startup routine to check if the bootloader was started via a watchdog reset, and if the magic application diff --git a/Bootloaders/DFU/BootloaderDFU.h b/Bootloaders/DFU/BootloaderDFU.h index ffd330d7f..8a826f536 100644 --- a/Bootloaders/DFU/BootloaderDFU.h +++ b/Bootloaders/DFU/BootloaderDFU.h @@ -62,7 +62,7 @@ #define BOOTLOADER_VERSION_REV 0 /** Magic bootloader key to unlock forced application start mode. */ - #define MAGIC_BOOT_KEY 0xDC42CACA + #define MAGIC_BOOT_KEY 0xDC42 /** Complete bootloader version number expressed as a packed byte, constructed from the * two individual bootloader version macros. diff --git a/Bootloaders/HID/BootloaderHID.c b/Bootloaders/HID/BootloaderHID.c index acc351a30..c32dddc15 100644 --- a/Bootloaders/HID/BootloaderHID.c +++ b/Bootloaders/HID/BootloaderHID.c @@ -46,7 +46,7 @@ static bool RunBootloader = true; * low when the application attempts to start via a watchdog reset, the bootloader will re-start. If set to the value * \ref MAGIC_BOOT_KEY the special init function \ref Application_Jump_Check() will force the application to start. */ -uint32_t MagicBootKey ATTR_NO_INIT; +uint16_t MagicBootKey ATTR_NO_INIT; /** Special startup routine to check if the bootloader was started via a watchdog reset, and if the magic application diff --git a/Bootloaders/HID/BootloaderHID.h b/Bootloaders/HID/BootloaderHID.h index af2812a7d..a28163380 100644 --- a/Bootloaders/HID/BootloaderHID.h +++ b/Bootloaders/HID/BootloaderHID.h @@ -53,7 +53,7 @@ #define COMMAND_STARTAPPLICATION 0xFFFF /** Magic bootloader key to unlock forced application start mode. */ - #define MAGIC_BOOT_KEY 0xDC42CACA + #define MAGIC_BOOT_KEY 0xDC42 /* Function Prototypes: */ static void SetupHardware(void); |