#include <string.h>
-#include "bootloaderconfig.h"
-#include "usbdrv/usbdrv.c"
-#if BOOTLOADER_CAN_EXIT
static void leaveBootloader() __attribute__((__noreturn__));
-#endif
+
+#include "bootloaderconfig.h"
+#include "usbdrv/usbdrv.c"
#ifndef BOOTLOADER_ADDRESS
#error need to know the bootloaders flash address!
/* ------------------------------------------------------------------------ */
-#if BOOTLOADER_CAN_EXIT
static void (*nullVector)(void) __attribute__((__noreturn__));
static void leaveBootloader()
*/
nullVector();
}
-#endif
/* ------------------------------------------------------------------------ */
}while (1); /* main event loop */
#endif
}
-#if BOOTLOADER_CAN_EXIT
leaveBootloader();
-#endif
}
/* ------------------------------------------------------------------------ */