Pull out common options in the StaticAnalysisTest build test makefile into a seperate...
[pub/USBasp.git] / Bootloaders / DFU / BootloaderAPITable.S
index 7f015f2..1ce125e 100644 (file)
 
 ; Bootloader API Jump Table
 .section .apitable, "ax"
-.org 0
 
+; API function jump table
+.org 0
 .global BootloaderAPI_JumpTable
 BootloaderAPI_JumpTable:
-       jmp BootloaderAPI_ErasePage
-       jmp BootloaderAPI_WritePage
-       jmp BootloaderAPI_FillWord
-       jmp BootloaderAPI_ReadSignature
-       jmp BootloaderAPI_ReadFuse
-       jmp BootloaderAPI_ReadLock
-       jmp BootloaderAPI_WriteLock
+       rjmp BootloaderAPI_ErasePage
+       rjmp BootloaderAPI_WritePage
+       rjmp BootloaderAPI_FillWord
+       rjmp BootloaderAPI_ReadSignature
+       rjmp BootloaderAPI_ReadFuse
+       rjmp BootloaderAPI_ReadLock
+       rjmp BootloaderAPI_WriteLock
+       nop ; UNUSED ENTRY
+       nop ; UNUSED ENTRY
+       nop ; UNUSED ENTRY
+       nop ; UNUSED ENTRY
+       ret
+
+; 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