Skip to content
Draft
4 changes: 1 addition & 3 deletions components/drivers/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ rsource "ipc/Kconfig"

rsource "serial/Kconfig"
rsource "can/Kconfig"
rsource "cputime/Kconfig"
rsource "i2c/Kconfig"
rsource "phy/Kconfig"
rsource "misc/Kconfig"
Expand Down Expand Up @@ -46,9 +45,8 @@ rsource "pci/Kconfig"
rsource "pic/Kconfig"
rsource "pin/Kconfig"
rsource "pinctrl/Kconfig"
rsource "ktime/Kconfig"
rsource "clock_time/Kconfig"
rsource "clk/Kconfig"
rsource "hwtimer/Kconfig"
rsource "usb/Kconfig"

endmenu
28 changes: 28 additions & 0 deletions components/drivers/clock_time/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
menuconfig RT_USING_CLOCK_TIME
bool "Using unified clock_time subsystem"
default n
help
Unified time subsystem that consolidates hwtimer, ktime, and cputime.
Provides clock source, clock event, and high-resolution timer support.

if RT_USING_CLOCK_TIME

config RT_USING_CLOCK_HRTIMER
bool "Enable high-resolution timer support"
default y
help
Enable high-resolution software timers built on clock_time devices.

config RT_USING_CLOCK_CPUTIME
bool "Enable CPU time APIs"
default y
help
Enable CPU time measurement and delay APIs.

config RT_USING_CLOCK_BOOTTIME
bool "Enable boottime APIs"
default y
help
Enable system boottime (monotonic time since boot) APIs.

endif
Loading
Loading