forked from mirror/uv-k5-firmware
Fixed correct return type.
This commit is contained in:
parent
6bbab9bfa0
commit
220edf489d
@ -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)
|
||||||
|
@ -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")));
|
||||||
|
Loading…
Reference in New Issue
Block a user