introduce new feature: BOOTLOADER_ABORTTIMEOUTONACT
[pub/USBaspLoader.git] / updater / usbasploader.h
1
2 #ifndef USBASPLOADER_H_5f27a7e9840141b1aa57eef07c1d939f
3 #define USBASPLOADER_H_5f27a7e9840141b1aa57eef07c1d939f 1
4
5 #include <stdint.h>
6 #include <avr/io.h>
7 #include <avr/pgmspace.h>
8 #include "../firmware/spminterface.h"
9
10 #ifndef SIZEOF_new_firmware
11 #ifdef BOOTLOADER_ADDRESS
12 #define SIZEOF_new_firmware (((FLASHEND)+1)-(BOOTLOADER_ADDRESS))
13 #else
14 #error unable to determine binary size of firmware
15 #endif
16 #endif
17
18
19 extern const const uint16_t usbasploader[SIZEOF_new_firmware>>1] PROGMEM;
20 const uint8_t *new_firmware = (void*)&usbasploader;
21
22 #endif
23