From 6cafdeaa73621426159af849be57e4709a445524 Mon Sep 17 00:00:00 2001 From: Rafael Silva Date: Thu, 25 Aug 2022 15:06:33 +0100 Subject: [PATCH] target_flash: enter_flash_mode return type fix --- src/target/renesas.c | 4 ++-- src/target/target_internal.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/target/renesas.c b/src/target/renesas.c index 11bd432..6c6128a 100644 --- a/src/target/renesas.c +++ b/src/target/renesas.c @@ -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); /* permit flash operations */ target_mem_write8(t, SYSC_FWEPROR, SYSC_FWEPROR_PERMIT); - return 0; + return true; } typedef enum pe_mode { diff --git a/src/target/target_internal.h b/src/target/target_internal.h index a9c22d3..07d7475 100644 --- a/src/target/target_internal.h +++ b/src/target/target_internal.h @@ -120,8 +120,8 @@ struct target_s { bool (*mass_erase)(target *t); /* Flash functions */ - int (*enter_flash_mode)(target *t); - int (*exit_flash_mode)(target *t); + bool (*enter_flash_mode)(target *t); + bool (*exit_flash_mode)(target *t); bool flash_mode; /* target-defined options */