From 220edf489dd743df68bc6910b225a3c2607ed7d0 Mon Sep 17 00:00:00 2001 From: Dual Tachyon Date: Fri, 8 Sep 2023 00:39:09 +0100 Subject: [PATCH] Fixed correct return type. --- sram-overlay.c | 4 +--- sram-overlay.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sram-overlay.c b/sram-overlay.c index f56b3de..3be849e 100644 --- a/sram-overlay.c +++ b/sram-overlay.c @@ -25,14 +25,12 @@ uint32_t overlay_FLASH_MainClock; uint32_t overlay_FLASH_ClockMultiplier; uint32_t overlay_0x20000478; // Nothing is using this??? -bool overlay_FLASH_RebootToBootloader(void) +void overlay_FLASH_RebootToBootloader(void) { overlay_FLASH_MaskUnlock(); overlay_FLASH_SetMaskSel(FLASH_MASK_SELECTION_NONE); overlay_FLASH_MaskLock(); overlay_SystemReset(); - - return (FLASH_ST & FLASH_ST_BUSY_MASK) != FLASH_ST_BUSY_BITS_READY; } bool overlay_FLASH_IsBusy(void) diff --git a/sram-overlay.h b/sram-overlay.h index ba53afb..8b6c7cc 100644 --- a/sram-overlay.h +++ b/sram-overlay.h @@ -25,7 +25,7 @@ extern uint32_t overlay_FLASH_MainClock __attribute__((section(".srambss"))); extern uint32_t overlay_FLASH_ClockMultiplier __attribute__((section(".srambss"))); extern uint32_t overlay_0x20000478 __attribute__((section(".srambss"))); -bool overlay_FLASH_RebootToBootloader(void) __attribute__((section(".sramtext"))); +void overlay_FLASH_RebootToBootloader(void) __attribute__((noreturn)) __attribute__((section(".sramtext"))); bool overlay_FLASH_IsBusy(void) __attribute__((section(".sramtext"))); bool overlay_FLASH_IsInitComplete(void) __attribute__((section(".sramtext"))); void overlay_FLASH_Start(void) __attribute__((section(".sramtext")));