target_flash: enter_flash_mode return type fix
This commit is contained in:
parent
8b03038b44
commit
6cafdeaa73
|
@ -363,14 +363,14 @@ static uint32_t renesas_flash_size(const uint8_t *pnr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int renesas_enter_flash_mode(target *t)
|
static bool renesas_enter_flash_mode(target *t)
|
||||||
{
|
{
|
||||||
target_reset(t);
|
target_reset(t);
|
||||||
|
|
||||||
/* permit flash operations */
|
/* permit flash operations */
|
||||||
target_mem_write8(t, SYSC_FWEPROR, SYSC_FWEPROR_PERMIT);
|
target_mem_write8(t, SYSC_FWEPROR, SYSC_FWEPROR_PERMIT);
|
||||||
|
|
||||||
return 0;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef enum pe_mode {
|
typedef enum pe_mode {
|
||||||
|
|
|
@ -120,8 +120,8 @@ struct target_s {
|
||||||
bool (*mass_erase)(target *t);
|
bool (*mass_erase)(target *t);
|
||||||
|
|
||||||
/* Flash functions */
|
/* Flash functions */
|
||||||
int (*enter_flash_mode)(target *t);
|
bool (*enter_flash_mode)(target *t);
|
||||||
int (*exit_flash_mode)(target *t);
|
bool (*exit_flash_mode)(target *t);
|
||||||
bool flash_mode;
|
bool flash_mode;
|
||||||
|
|
||||||
/* target-defined options */
|
/* target-defined options */
|
||||||
|
|
Loading…
Reference in New Issue