Details | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 228 | andfri | 1 | #ifndef FLASH_H_ |
| 2 | #define FLASH_H_ |
||
| 3 | |||
| 4 | #define BOOTLOADER __attribute__ ((section (".bootloader"))) |
||
| 5 | |||
| 254 | andfri | 6 | //#define FLASH_LOAD_BUFFER |
| 299 | andfri | 7 | //#define FLASH_COPY_DATA |
| 8 | #define FLASH_COPY_DATA_NEW |
||
| 254 | andfri | 9 | |
| 228 | andfri | 10 | //--------------------------------------------------------------------------- |
| 11 | // Function prototypes for flash modifying functions |
||
| 12 | |||
| 283 | andfri | 13 | void flash_init(void) BOOTLOADER; |
| 228 | andfri | 14 | void flash_write_word(uint16_t addr, uint16_t word) BOOTLOADER; |
| 253 | andfri | 15 | void flash_flush_buffer(void) BOOTLOADER; |
| 254 | andfri | 16 | #ifdef FLASH_COPY_DATA |
| 17 | void flash_copy_data(uint16_t src, uint16_t dst, uint16_t len) BOOTLOADER; |
||
| 18 | #endif |
||
| 299 | andfri | 19 | #ifdef FLASH_COPY_DATA_NEW |
| 20 | void flash_copy_data(uint16_t src, uint16_t dst, uint16_t len) __attribute__ ((noreturn)) __attribute__ ((section (".flash_code"))); |
||
| 21 | #endif |
||
| 228 | andfri | 22 | |
| 23 | #endif /*FLASH_H_*/ |