Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
56d368f2
Commit
56d368f2
authored
Jul 07, 2012
by
Dean Camera
Browse files
Reduce bootloader magic key to 16 bits to save FLASH space.
parent
10944d9d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Bootloaders/CDC/BootloaderCDC.c
View file @
56d368f2
...
...
@@ -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.
*/
uint
32
_t
MagicBootKey
ATTR_NO_INIT
;
uint
16
_t
MagicBootKey
ATTR_NO_INIT
;
/** Special startup routine to check if the bootloader was started via a watchdog reset, and if the magic application
...
...
Bootloaders/CDC/BootloaderCDC.h
View file @
56d368f2
...
...
@@ -69,7 +69,7 @@
#define SOFTWARE_IDENTIFIER "LUFACDC"
/** Magic bootloader key to unlock forced application start mode. */
#define MAGIC_BOOT_KEY 0xDC42
CACA
#define MAGIC_BOOT_KEY
0xDC42
/* Type Defines: */
/** Type define for a non-returning pointer to the start of the loaded application in flash memory. */
...
...
Bootloaders/DFU/BootloaderDFU.c
View file @
56d368f2
...
...
@@ -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.
*/
uint
32
_t
MagicBootKey
ATTR_NO_INIT
;
uint
16
_t
MagicBootKey
ATTR_NO_INIT
;
/** Special startup routine to check if the bootloader was started via a watchdog reset, and if the magic application
...
...
Bootloaders/DFU/BootloaderDFU.h
View file @
56d368f2
...
...
@@ -62,7 +62,7 @@
#define BOOTLOADER_VERSION_REV 0
/** Magic bootloader key to unlock forced application start mode. */
#define MAGIC_BOOT_KEY 0xDC42
CACA
#define MAGIC_BOOT_KEY 0xDC42
/** Complete bootloader version number expressed as a packed byte, constructed from the
* two individual bootloader version macros.
...
...
Bootloaders/HID/BootloaderHID.c
View file @
56d368f2
...
...
@@ -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.
*/
uint
32
_t
MagicBootKey
ATTR_NO_INIT
;
uint
16
_t
MagicBootKey
ATTR_NO_INIT
;
/** Special startup routine to check if the bootloader was started via a watchdog reset, and if the magic application
...
...
Bootloaders/HID/BootloaderHID.h
View file @
56d368f2
...
...
@@ -53,7 +53,7 @@
#define COMMAND_STARTAPPLICATION 0xFFFF
/** Magic bootloader key to unlock forced application start mode. */
#define MAGIC_BOOT_KEY 0xDC42
CACA
#define MAGIC_BOOT_KEY
0xDC42
/* Function Prototypes: */
static
void
SetupHardware
(
void
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment