X-Git-Url: http://git.linex4red.de/pub/USBaspLoader.git/blobdiff_plain/a38369d874367dd58e9e641bba7be95302434a88..75fda0918116faee3b7f9b83bf0c60801175abbf:/updater/usbasploader.h diff --git a/updater/usbasploader.h b/updater/usbasploader.h new file mode 100644 index 0000000..1ff4764 --- /dev/null +++ b/updater/usbasploader.h @@ -0,0 +1,23 @@ + +#ifndef FIRMWARE_H_5f27a7e9840141b1aa57eef07c1d939f +#define FIRMWARE_H_5f27a7e9840141b1aa57eef07c1d939f 1 + +#include +#include +#include +#include "../firmware/spminterface.h" + +#ifndef SIZEOF_new_firmware + #ifdef BOOTLOADER_ADDRESS + #define SIZEOF_new_firmware (((FLASHEND)+1)-(BOOTLOADER_ADDRESS)) + #else + #error unable to determine binary size of firmware + #endif +#endif + + +extern const const uint16_t usbasploader[SIZEOF_new_firmware>>1] PROGMEM; +const uint8_t *new_firmware = (void*)&usbasploader; + +#endif +