Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
b8294503
Commit
b8294503
authored
Mar 29, 2024
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
samd/mcu: Guard static function with appropriate #if.
Signed-off-by:
Damien George
<
damien@micropython.org
>
parent
20a86eff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
ports/samd/mcu/samd21/clock_config.c
ports/samd/mcu/samd21/clock_config.c
+2
-0
No files found.
ports/samd/mcu/samd21/clock_config.c
View file @
b8294503
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment