app启动时如果boot魔数校验错误则自动升级bootloader
This commit is contained in:
@@ -14,6 +14,10 @@
|
||||
#define REBOOT_INIT 0xffff
|
||||
|
||||
|
||||
// 定义boot魔数
|
||||
#define BOOT_MAGIC_NUM ((uint32_t)(('b')<<0)|(('o')<<8)|(('o')<<16)|(('t')<<24))
|
||||
|
||||
|
||||
void bk_reboot_app(void);
|
||||
void bk_reboot_boot(void);
|
||||
void bk_reboot_updata(void);
|
||||
@@ -26,6 +30,7 @@ const char *bk_get_currtype(void);
|
||||
void bk_set_wdog_fun(void (*fun)(void));
|
||||
void *bk_wdog_fun(void);
|
||||
uint32_t bk_reboot_times(void);
|
||||
int bk_check_magic_num(void);
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user