Skip to content

Commit b829450

Browse files
committed
samd/mcu: Guard static function with appropriate #if.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 20a86ef commit b829450

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ports/samd/mcu/samd21/clock_config.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ void set_cpu_freq(uint32_t cpu_freq_arg) {
111111
SysTick_Config(cpu_freq / 1000);
112112
}
113113

114+
#if !MICROPY_HW_XOSC32K || MICROPY_HW_DFLL_USB_SYNC
114115
static void sync_dfll48_with_xosc32kulp(void) {
115116
SYSCTRL->DFLLCTRL.reg = SYSCTRL_DFLLCTRL_ENABLE;
116117
while (!SYSCTRL->PCLKSR.bit.DFLLRDY) {
@@ -131,6 +132,7 @@ static void sync_dfll48_with_xosc32kulp(void) {
131132
while (!SYSCTRL->PCLKSR.bit.DFLLLCKF) {
132133
}
133134
}
135+
#endif
134136

135137
void check_usb_clock_recovery_mode(void) {
136138
#if MICROPY_HW_DFLL_USB_SYNC

0 commit comments

Comments
 (0)