69 #define CHKSUM_INIT 0xef 71 #define SECTOR_SIZE 0x1000 72 #define BOOT_CONFIG_SECTOR 1 74 #define BOOT_CONFIG_MAGIC 0xe1 75 #define BOOT_CONFIG_VERSION 0x01 77 #define MODE_STANDARD 0x00 78 #define MODE_GPIO_ROM 0x01 79 #define MODE_TEMP_ROM 0x02 80 #define MODE_GPIO_ERASES_SDKCONFIG 0x04 81 #define MODE_GPIO_SKIP 0x08 83 #define RBOOT_RTC_MAGIC 0x2334ae68 84 #define RBOOT_RTC_READ 1 85 #define RBOOT_RTC_WRITE 0 86 #define RBOOT_RTC_ADDR 64 90 #define BOOT_GPIO_NUM 16 115 uint32 roms[MAX_ROMS];
116 #ifdef BOOT_CONFIG_CHKSUM 121 #ifdef BOOT_RTC_ENABLED 141 #ifdef BOOT_CUSTOM_DEFAULT_CONFIG 142 static uint8 default_config(
rboot_config *romconf, uint32 flashsize) {
144 romconf->
roms[0] = SECTOR_SIZE * (BOOT_CONFIG_SECTOR + 1);
145 romconf->
roms[1] = (flashsize / 2) + (SECTOR_SIZE * (BOOT_CONFIG_SECTOR + 1));
uint32 roms[MAX_ROMS]
Flash addresses of each ROM.
Definition: rboot.h:115
uint8 current_rom
Currently selected ROM (will be used for next standard boot)
Definition: rboot.h:111
Structure containing rBoot configuration.
Definition: rboot.h:107
uint8 mode
Boot loader mode (MODE_STANDARD | MODE_GPIO_ROM | MODE_GPIO_SKIP)
Definition: rboot.h:110
uint8 version
Version of configuration structure - should be BOOT_CONFIG_VERSION.
Definition: rboot.h:109
uint8 count
Quantity of ROMs available to boot.
Definition: rboot.h:113
uint8 gpio_rom
ROM to use for GPIO boot (hardware switch) with mode set to MODE_GPIO_ROM.
Definition: rboot.h:112
uint8 magic
Our magic, identifies rBoot configuration - should be BOOT_CONFIG_MAGIC.
Definition: rboot.h:108