diff --git a/arch/arm/src/sam34/sam4l_clockconfig.c b/arch/arm/src/sam34/sam4l_clockconfig.c index 96070331ee..77efe7b396 100644 --- a/arch/arm/src/sam34/sam4l_clockconfig.c +++ b/arch/arm/src/sam34/sam4l_clockconfig.c @@ -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