blob: c1b982061eb0e7ad84b9ae2bbb4b501f27470057 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef __FE_BOOTLOADER_H__
#define __FE_BOOTLOADER_H__
#include <fe_global.h>
void fe_jump_to_application(void) __attribute__ ((noreturn));
void fe_system_reset(void) __attribute__ ((noreturn));
bool fe_check_img_valid(void);
void flash_unlock(void);
void flash_lock(void);
int flash_erase_page(size_t addr);
int flash_write(size_t addr, char *buf, size_t len);
int erase_user_flash(void);
#define PAGE_SIZE 0x2000
extern size_t flash_base;
extern size_t flash_size;
extern size_t bootloader_size;
#endif /* __FE_BOOTLOADER_H__ */
|