rboot/rboot.c
// populate the user fields of the default config
// created on first boot or in case of corruption
populate the user fields of the default config
created on first boot or in case of corruption
populate the user fields of the default config created on first boot or in case of corruption
static uint8_t default_config(rboot_config *romconf, uint32_t flashsize) {
  romconf->count = 2;
  romconf->roms[0] = SECTOR_SIZE * (BOOT_CONFIG_SECTOR + 1);
  romconf->roms[1] = (flashsize / 2) + (SECTOR_SIZE * (BOOT_CONFIG_SECTOR + 1));
  romconf->user_rom_save_data_flag = BOOT_USER_ROM_NO_DATA_SET;
  romconf->user_rom_save_data_size = 0;
  romconf->user_rom_save_data[0] = '\0';
}
static uint8_t default_config ( rboot_config * romconf , uint32_t flashsize ) { romconf -> count = 2 ; romconf -> roms [ 0 ] = SECTOR_SIZE * ( BOOT_CONFIG_SECTOR + 1 ) ; romconf -> roms [ 1 ] = ( flashsize / 2 ) + ( SECTOR_SIZE * ( BOOT_CONFIG_SECTOR + 1 ) ) ; romconf -> user_rom_save_data_flag = BOOT_USER_ROM_NO_DATA_SET ; romconf -> user_rom_save_data_size = 0 ; romconf -> user_rom_save_data [ 0 ] = ' \0 ' ; }
populate the user fields of the default config
created on first boot or in case of corruption
populate the user fields of the default config created on first boot or in case of corruption