projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added User Application APIs to the CDC and DFU class bootloaders.
[pub/USBasp.git]
/
Bootloaders
/
CDC
/
BootloaderCDC.c
diff --git
a/Bootloaders/CDC/BootloaderCDC.c
b/Bootloaders/CDC/BootloaderCDC.c
index
7695e33
..
f336a13
100644
(file)
--- a/
Bootloaders/CDC/BootloaderCDC.c
+++ b/
Bootloaders/CDC/BootloaderCDC.c
@@
-63,6
+63,10
@@
static bool RunBootloader = true;
*/
int main(void)
{
*/
int main(void)
{
+ /* Force a reference to the API jump table to prevent the linker from discarding it */
+ uint8_t* volatile Dummy = BootloaderAPI_JumpTable;
+ (void)Dummy;
+
/* Setup hardware required for the bootloader */
SetupHardware();
/* Setup hardware required for the bootloader */
SetupHardware();