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 | |||
| 6 | //--------------------------------------------------------------------------- |
||
| 7 | // Function prototypes for flash modifying functions |
||
| 8 | // TODO: These must be located above boot loader section limit even if bios |
||
| 9 | // size grows larger than that. |
||
| 10 | |||
| 11 | void flash_init(void); |
||
| 12 | void flash_write_word(uint16_t addr, uint16_t word) BOOTLOADER; |
||
| 13 | void flash_flush_buffer(void) __attribute__ ((section (".bootloader"))); |
||
| 14 | |||
| 15 | #endif /*FLASH_H_*/ |