diff options
author | Martino Facchin <m.facchin@arduino.cc> | 2016-04-06 16:33:14 +0200 |
---|---|---|
committer | Martino Facchin <m.facchin@arduino.cc> | 2016-04-06 17:41:06 +0200 |
commit | 5e194bd8efe8dcd2fb6eaa13cec1a2a642c5254a (patch) | |
tree | f34c3a6aad5f9e3b43e121948bfa3563c1dd3495 /cores/arduino/WString.h | |
parent | 71b87bf26bc7b485dc1c111603fd09327c1b6c53 (diff) |
[AVR] Discover newer bootloader at runtime
Replaces #4280, only checks for the bootloader once
Tested with Hoodloader2, should work with every LUFA-derived bootloader released after 2014 (.apitable_signatures section must be placed at end of the flash)
BootloaderAPITable.S :
.global BootloaderAPI_Signatures
BootloaderAPI_Signatures:
.long BOOT_START_ADDR ; Start address of the bootloader
.word 0xDF00 ; Signature for the CDC class bootloader
.word 0xDCFB ; Signature for a LUFA class bootloader
makefile:
BOOT_API_LD_FLAGS += $(call BOOT_SECTION_LD_FLAG, .apitable_signatures, BootloaderAPI_Signatures, 8)
Diffstat (limited to 'cores/arduino/WString.h')
0 files changed, 0 insertions, 0 deletions