diff options
| author | Damien George <damien@micropython.org> | 2024-03-29 17:48:06 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-03-29 17:48:06 +1100 |
| commit | b82945035954e7f28c64f1f962e17b280cdf7ea5 (patch) | |
| tree | 416099dde3859bfc382d944c9ad01d6cd7d19742 | |
| parent | 20a86eff5382d874f8f95a8009f76155c43a6aa9 (diff) | |
samd/mcu: Guard static function with appropriate #if.
Signed-off-by: Damien George <damien@micropython.org>
| -rw-r--r-- | ports/samd/mcu/samd21/clock_config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/samd/mcu/samd21/clock_config.c b/ports/samd/mcu/samd21/clock_config.c index 033d0f7c1..5ce127ec8 100644 --- a/ports/samd/mcu/samd21/clock_config.c +++ b/ports/samd/mcu/samd21/clock_config.c @@ -111,6 +111,7 @@ void set_cpu_freq(uint32_t cpu_freq_arg) { SysTick_Config(cpu_freq / 1000); } +#if !MICROPY_HW_XOSC32K || MICROPY_HW_DFLL_USB_SYNC static void sync_dfll48_with_xosc32kulp(void) { SYSCTRL->DFLLCTRL.reg = SYSCTRL_DFLLCTRL_ENABLE; while (!SYSCTRL->PCLKSR.bit.DFLLRDY) { @@ -131,6 +132,7 @@ static void sync_dfll48_with_xosc32kulp(void) { while (!SYSCTRL->PCLKSR.bit.DFLLLCKF) { } } +#endif void check_usb_clock_recovery_mode(void) { #if MICROPY_HW_DFLL_USB_SYNC |
