Skip to content

[Backport v4.0-branch] soc: sam0: samd5x: xosc32 configurable startup time #166882

[Backport v4.0-branch] soc: sam0: samd5x: xosc32 configurable startup time

[Backport v4.0-branch] soc: sam0: samd5x: xosc32 configurable startup time #166882

Triggered via pull request December 17, 2024 11:38
Status Success
Total duration 2m 37s
Artifacts 1

compliance.yml

on: pull_request
Run compliance checks on patch series (PR)
2m 28s
Run compliance checks on patch series (PR)
Fit to window
Zoom out
Zoom in

Annotations

1 error, 1 warning, and 1 notice
Run compliance checks on patch series (PR)
Process completed with exit code 1.
Run compliance checks on patch series (PR): ClangFormat.txt#L1
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details. You may want to run clang-format on this change: -#define SAM0_XOSC32K_STARTUP_TIME CONFIG_SOC_ATMEL_SAMD5X_XOSC32K_STARTUP +#define SAM0_XOSC32K_STARTUP_TIME CONFIG_SOC_ATMEL_SAMD5X_XOSC32K_STARTUP #if CONFIG_SOC_ATMEL_SAMD5X_XOSC32K_AS_MAIN static void osc32k_init(void) { - OSC32KCTRL->XOSC32K.reg = OSC32KCTRL_XOSC32K_ENABLE - | OSC32KCTRL_XOSC32K_XTALEN - | OSC32KCTRL_XOSC32K_CGM_XT - | OSC32KCTRL_XOSC32K_EN32K - | OSC32KCTRL_XOSC32K_RUNSTDBY - | OSC32KCTRL_XOSC32K_STARTUP(SAM0_XOSC32K_STARTUP_TIME) - ; + OSC32KCTRL->XOSC32K.reg = OSC32KCTRL_XOSC32K_ENABLE | OSC32KCTRL_XOSC32K_XTALEN | + OSC32KCTRL_XOSC32K_CGM_XT | OSC32KCTRL_XOSC32K_EN32K | + OSC32KCTRL_XOSC32K_RUNSTDBY | + OSC32KCTRL_XOSC32K_STARTUP(SAM0_XOSC32K_STARTUP_TIME); File:soc/atmel/sam0/common/soc_samd5x.c Line:33
You may want to run clang-format on this change: soc/atmel/sam0/common/soc_samd5x.c#L33
soc/atmel/sam0/common/soc_samd5x.c:33 -#define SAM0_XOSC32K_STARTUP_TIME CONFIG_SOC_ATMEL_SAMD5X_XOSC32K_STARTUP +#define SAM0_XOSC32K_STARTUP_TIME CONFIG_SOC_ATMEL_SAMD5X_XOSC32K_STARTUP #if CONFIG_SOC_ATMEL_SAMD5X_XOSC32K_AS_MAIN static void osc32k_init(void) { - OSC32KCTRL->XOSC32K.reg = OSC32KCTRL_XOSC32K_ENABLE - | OSC32KCTRL_XOSC32K_XTALEN - | OSC32KCTRL_XOSC32K_CGM_XT - | OSC32KCTRL_XOSC32K_EN32K - | OSC32KCTRL_XOSC32K_RUNSTDBY - | OSC32KCTRL_XOSC32K_STARTUP(SAM0_XOSC32K_STARTUP_TIME) - ; + OSC32KCTRL->XOSC32K.reg = OSC32KCTRL_XOSC32K_ENABLE | OSC32KCTRL_XOSC32K_XTALEN | + OSC32KCTRL_XOSC32K_CGM_XT | OSC32KCTRL_XOSC32K_EN32K | + OSC32KCTRL_XOSC32K_RUNSTDBY | + OSC32KCTRL_XOSC32K_STARTUP(SAM0_XOSC32K_STARTUP_TIME);

Artifacts

Produced during runtime
Name Size
compliance.xml
812 Bytes