Added User Application APIs to the CDC and DFU class bootloaders.
[pub/USBasp.git] / Bootloaders / CDC / BootloaderCDC.c
index 7695e33..f336a13 100644 (file)
@@ -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();