Fix chip/sam4l_clockconfig.c:923:20: error: unused function 'sam_enable_fastwakeup'

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-19 12:50:19 +08:00 committed by Petro Karashchenko
parent d3e282e561
commit d01fbf77d0

View File

@ -920,6 +920,8 @@ static inline void sam_setdividers(void)
*
****************************************************************************/
#if BOARD_CPU_FREQUENCY > FLASH_MAXFREQ_PS1_HSDIS_FWS0 && \
BOARD_CPU_FREQUENCY <= FLASH_MAXFREQ_PS1_HSDIS_FWS1
static inline void sam_enable_fastwakeup(void)
{
uint32_t regval;
@ -930,6 +932,7 @@ static inline void sam_enable_fastwakeup(void)
SAM_BPM_UNLOCK);
putreg32(regval, SAM_BPM_PMCON);
}
#endif
/****************************************************************************
* Name: set_flash_waitstate