Fixed correct return type.

This commit is contained in:
Dual Tachyon 2023-09-08 00:39:09 +01:00
parent 6bbab9bfa0
commit 220edf489d
2 changed files with 2 additions and 4 deletions

View File

@ -25,14 +25,12 @@ uint32_t overlay_FLASH_MainClock;
uint32_t overlay_FLASH_ClockMultiplier; uint32_t overlay_FLASH_ClockMultiplier;
uint32_t overlay_0x20000478; // Nothing is using this??? uint32_t overlay_0x20000478; // Nothing is using this???
bool overlay_FLASH_RebootToBootloader(void) void overlay_FLASH_RebootToBootloader(void)
{ {
overlay_FLASH_MaskUnlock(); overlay_FLASH_MaskUnlock();
overlay_FLASH_SetMaskSel(FLASH_MASK_SELECTION_NONE); overlay_FLASH_SetMaskSel(FLASH_MASK_SELECTION_NONE);
overlay_FLASH_MaskLock(); overlay_FLASH_MaskLock();
overlay_SystemReset(); overlay_SystemReset();
return (FLASH_ST & FLASH_ST_BUSY_MASK) != FLASH_ST_BUSY_BITS_READY;
} }
bool overlay_FLASH_IsBusy(void) bool overlay_FLASH_IsBusy(void)

View File

@ -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_FLASH_ClockMultiplier __attribute__((section(".srambss")));
extern uint32_t overlay_0x20000478 __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_IsBusy(void) __attribute__((section(".sramtext")));
bool overlay_FLASH_IsInitComplete(void) __attribute__((section(".sramtext"))); bool overlay_FLASH_IsInitComplete(void) __attribute__((section(".sramtext")));
void overlay_FLASH_Start(void) __attribute__((section(".sramtext"))); void overlay_FLASH_Start(void) __attribute__((section(".sramtext")));