Skip to content

Commit

Permalink
sys/ztimer: fix ztimer deps resolution on native with kconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
aabadie committed May 22, 2023
1 parent b0cb3e7 commit d6694fc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sys/ztimer/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ config ZTIMER_USEC
select MODULE_ZTIMER_USEC
select MODULE_ZTIMER_PERIPH_TIMER
select MODULE_ZTIMER
select PREFER_ZTIMER_PERIPH_TIMER

config PREFER_ZTIMER_PERIPH_TIMER
bool

config MODULE_ZTIMER_USEC
bool
Expand All @@ -71,7 +75,7 @@ config MODULE_ZTIMER_MSEC
choice ZTIMER_MSEC_BACKEND
bool "Backend"
depends on MODULE_ZTIMER_MSEC
default ZTIMER_MSEC_BACKEND_TIMER if MODULE_ZTIMER_USEC
default ZTIMER_MSEC_BACKEND_TIMER if PREFER_ZTIMER_PERIPH_TIMER
default ZTIMER_MSEC_BACKEND_LPTIMER if HAVE_ZTIMER_PERIPH_LPTIMER
default ZTIMER_MSEC_BACKEND_RTT if !MODULE_ZTIMER_NO_PERIPH_RTT
default ZTIMER_MSEC_BACKEND_TIMER
Expand Down Expand Up @@ -99,6 +103,7 @@ config MODULE_ZTIMER_SEC
choice
bool "Backend"
depends on MODULE_ZTIMER_SEC
default ZTIMER_SEC_BACKEND_TIMER if PREFER_ZTIMER_PERIPH_TIMER
default ZTIMER_SEC_BACKEND_LPTIMER if HAVE_ZTIMER_PERIPH_LPTIMER
default ZTIMER_SEC_BACKEND_RTT if !MODULE_ZTIMER_NO_PERIPH_RTT
default ZTIMER_SEC_BACKEND_TIMER
Expand Down

0 comments on commit d6694fc

Please sign in to comment.