17 #ifdef RBOOT_INTEGRATION 18 #include <rboot-integration.h> 75 #define CHKSUM_INIT 0xef 77 #define SECTOR_SIZE 0x1000 78 #define BOOT_CONFIG_SECTOR 1 80 #define BOOT_CONFIG_MAGIC 0xe1 81 #define BOOT_CONFIG_VERSION 0x01 83 #define MODE_STANDARD 0x00 84 #define MODE_GPIO_ROM 0x01 85 #define MODE_TEMP_ROM 0x02 86 #define MODE_GPIO_ERASES_SDKCONFIG 0x04 87 #define MODE_GPIO_SKIP 0x08 89 #define RBOOT_RTC_MAGIC 0x2334ae68 90 #define RBOOT_RTC_READ 1 91 #define RBOOT_RTC_WRITE 0 92 #define RBOOT_RTC_ADDR 64 96 #define BOOT_GPIO_NUM 16 122 #ifdef BOOT_CONFIG_CHKSUM 127 #ifdef BOOT_RTC_ENABLED 147 #ifdef BOOT_CUSTOM_DEFAULT_CONFIG 148 static uint8_t default_config(
rboot_config *romconf, uint32_t flashsize) {
uint8_t gpio_rom
ROM to use for GPIO boot (hardware switch) with mode set to MODE_GPIO_ROM.
Definition: rboot.h:118
uint8_t current_rom
Currently selected ROM (will be used for next standard boot)
Definition: rboot.h:117
uint8_t version
Version of configuration structure - should be BOOT_CONFIG_VERSION.
Definition: rboot.h:115
#define MAX_ROMS
Definition: rboot.h:100
Structure containing rBoot configuration.
Definition: rboot.h:113
uint32_t roms[MAX_ROMS]
Flash addresses of each ROM.
Definition: rboot.h:121
uint8_t count
Quantity of ROMs available to boot.
Definition: rboot.h:119
#define BOOT_CONFIG_SECTOR
Definition: rboot.h:78
uint8_t mode
Boot loader mode (MODE_STANDARD | MODE_GPIO_ROM | MODE_GPIO_SKIP)
Definition: rboot.h:116
#define SECTOR_SIZE
Definition: rboot.h:77
uint8_t magic
Our magic, identifies rBoot configuration - should be BOOT_CONFIG_MAGIC.
Definition: rboot.h:114