Skip to content

No KCONFIG option for selecting Silabs sleeptimer peripheral #92312

@jonathanlee-uk

Description

@jonathanlee-uk

Is your feature request related to a problem? Please describe.

In \zephyr\drivers\timer\silabs_sleeptimer_timer.c, sleeptimer is hard-coded to use silabs,gecko-stimer as the peripheral. To use other peripherals as sleeptimer e.g. BURTC, DT_RTC must be manually modified to pick silabs,gecko-burtc from devicetree. And #undef must be set to BURTC for IRQ_CONNECT to work in sleeptimer_init().

As burtc0 in devicetree doesn't has the node "interrupt-name", IRQ_CONNECT mentioned above wouldn't work unless the node is added by user overlay file.

Finally, in \modules\hal\silabs\simplicity_sdk\platform\service\sleeptimer\config\sl_sleeptimer_config.h, SL_SLEEPTIMER_PERIPHERAL must be manully set to SL_SLEEPTIMER_PERIPHERAL_BURTC to finish up setting BURTC as the peripheral for sleeptimer.

Describe the solution you'd like

I hope there would be some KCONFIG options to change the peripheral for sleeptimer.

Describe alternatives you've considered

No response

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions