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/108/head
parent
311977e47a
commit
829dde8b11
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue