; Bootloader API Jump Table
.section .apitable, "ax"
-.org 0
; API function jump table
+.org 0
.global BootloaderAPI_JumpTable
BootloaderAPI_JumpTable:
rjmp BootloaderAPI_ErasePage
rjmp BootloaderAPI_ReadFuse
rjmp BootloaderAPI_ReadLock
rjmp BootloaderAPI_WriteLock
+ nop ; UNUSED ENTRY
+ nop ; UNUSED ENTRY
+ nop ; UNUSED ENTRY
+ nop ; UNUSED ENTRY
+ ret
-; Bootloader table signature
-.org 30
- .word 0xDCFB
+; Bootloader table signatures and information
+.org (32 - 8)
+BootloaderAPI_Signatures:
+.global BootloaderAPI_Signatures
+ .long BOOT_START_ADDR ; Start address of the bootloader
+ .word 0xDFB1 ; Signature for the DFU class bootloader, V1
+ .word 0xDCFB ; Signature for a LUFA class bootloader