1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-05 16:24:12 +01:00
Arduino/hardware/arduino/avr/variants
Martino Facchin 4c901d3f9f [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)
2016-04-06 17:41:06 +02:00
..
eightanaloginputs Removed a handful of SVN expansion keywords. See #277 2015-07-03 10:38:07 +02:00
ethernet Ethernet digitalPinToInterrupt support 2015-10-23 10:16:43 +02:00
gemma Added defines for gemma 2015-11-17 15:04:11 +01:00
leonardo [AVR] Discover newer bootloader at runtime 2016-04-06 17:41:06 +02:00
mega Removed a handful of SVN expansion keywords. See #277 2015-07-03 10:38:07 +02:00
micro Removed a handful of SVN expansion keywords. See #277 2015-07-03 10:38:07 +02:00
robot_control Removed a handful of SVN expansion keywords. See #277 2015-07-03 10:38:07 +02:00
robot_motor Removed a handful of SVN expansion keywords. See #277 2015-07-03 10:38:07 +02:00
standard Removed a handful of SVN expansion keywords. See #277 2015-07-03 10:38:07 +02:00
yun Removed a handful of SVN expansion keywords. See #277 2015-07-03 10:38:07 +02:00