1 #ifndef __RBOOT_API_H__ 2 #define __RBOOT_API_H__ 30 int32 last_sector_erased;
98 #ifdef BOOT_RTC_ENABLED 104 bool ICACHE_FLASH_ATTR rboot_get_rtc_data(rboot_rtc_data *rtc);
111 bool ICACHE_FLASH_ATTR rboot_set_rtc_data(rboot_rtc_data *rtc);
121 bool ICACHE_FLASH_ATTR rboot_set_temp_rom(uint8 rom);
129 bool ICACHE_FLASH_ATTR rboot_get_last_boot_rom(uint8 *rom);
137 bool ICACHE_FLASH_ATTR rboot_get_last_boot_mode(uint8 *mode);
bool ICACHE_FLASH_ATTR rboot_write_end(rboot_write_status *status)
Complete flash write process.
bool ICACHE_FLASH_ATTR rboot_write_flash(rboot_write_status *status, uint8 *data, uint16 len)
Write data to flash memory.
Structure containing rBoot configuration.
Definition: rboot.h:107
rboot_write_status ICACHE_FLASH_ATTR rboot_write_init(uint32 start_addr)
Initialise flash write process.
uint8 ICACHE_FLASH_ATTR rboot_get_current_rom(void)
Get index of current ROM.
rboot_config ICACHE_FLASH_ATTR rboot_get_config(void)
Read rBoot configuration from flash.
Structure defining flash write status.
Definition: rboot-api.h:26
bool ICACHE_FLASH_ATTR rboot_set_current_rom(uint8 rom)
Set the index of current ROM.
bool ICACHE_FLASH_ATTR rboot_set_config(rboot_config *conf)
Write rBoot configuration to flash memory.