123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #ifndef _BOOTLOADER_API_H_
- #define _BOOTLOADER_API_H_
-
- #include <avr/io.h>
- #include <avr/boot.h>
- #include <stdbool.h>
- #include <LUFA/Common/Common.h>
-
- #if AUX_BOOT_SECTION_SIZE > 0
- #define AUX_BOOT_SECTION __attribute__((section(".boot_aux")))
- #else
- #define AUX_BOOT_SECTION
- #endif
-
- void BootloaderAPI_ErasePage(const uint32_t Address);
- void BootloaderAPI_WritePage(const uint32_t Address);
- void BootloaderAPI_FillWord(const uint32_t Address, const uint16_t Word);
- uint8_t BootloaderAPI_ReadSignature(const uint16_t Address);
- uint8_t BootloaderAPI_ReadFuse(const uint16_t Address);
- uint8_t BootloaderAPI_ReadLock(void);
- void BootloaderAPI_WriteLock(const uint8_t LockBits);
- #endif
|