Fix the foe code of the rtl_slavedemo application

With d9ebdc99 the FOE part of the API changed a bit, but the application was not updated.
pull/110/head
bnjmnp 2021-12-02 21:55:39 +01:00
parent 311977e47a
commit 098e74f0b8
1 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ void boot_inithook (void)
}
}
uint32_t flash_foe_buffer (foe_writefile_cfg_t * self, uint8_t * data, size_t length)
uint32_t flash_foe_buffer (foe_file_cfg_t * self, uint8_t * data, size_t length)
{
uint32_t flash_cmd_failed = 0;
uint32_t calculated_address = self->dest_start_address + self->address_offset;
@ -92,7 +92,7 @@ void bootstrap_foe_init (void)
* extern uint32_t flash_start;
*/
/* This part is Cortex M4 Kinetis specific therefore placed in Hooks*/
static foe_writefile_cfg_t files[] =
static foe_file_cfg_t files[] =
{
{
.name = "ato.bin",
@ -122,7 +122,7 @@ void bootstrap_foe_init (void)
.files = files
};
FOE_config ((foe_cfg_t *)&config, (foe_writefile_cfg_t *)&files);
FOE_config ((foe_cfg_t *)&config);
}
void bootstrap_state (void)