Subversion Repositories HomeAutomation

Rev

Rev 254 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 254 Rev 283
Line 2... Line 2...
2
#define FLASH_H_
2
#define FLASH_H_
3
 
3
 
4
#define BOOTLOADER __attribute__ ((section (".bootloader")))
4
#define BOOTLOADER __attribute__ ((section (".bootloader")))
5
 
5
 
6
//#define FLASH_LOAD_BUFFER
6
//#define FLASH_LOAD_BUFFER
7
//#define FLASH_COPY_DATA
7
#define FLASH_COPY_DATA
8
 
8
 
9
//---------------------------------------------------------------------------
9
//---------------------------------------------------------------------------
10
// Function prototypes for flash modifying functions
10
// Function prototypes for flash modifying functions
11
 
11
 
12
void flash_init(void);
12
void flash_init(void) BOOTLOADER;
13
void flash_write_word(uint16_t addr, uint16_t word) BOOTLOADER;
13
void flash_write_word(uint16_t addr, uint16_t word) BOOTLOADER;
14
void flash_flush_buffer(void) BOOTLOADER;
14
void flash_flush_buffer(void) BOOTLOADER;
15
#ifdef FLASH_COPY_DATA
15
#ifdef FLASH_COPY_DATA
16
void flash_copy_data(uint16_t src, uint16_t dst, uint16_t len) BOOTLOADER;
16
void flash_copy_data(uint16_t src, uint16_t dst, uint16_t len) BOOTLOADER;
17
#endif
17
#endif