1# Sensor clock configuration options
2# Copyright(c) 2024 Cienet
3# SPDX-License-Identifier: Apache-2.0
4
5config SENSOR_CLOCK
6	bool
7	default y if SENSOR_ASYNC_API
8	help
9	  Configure the sensor clock source for the system.
10
11if SENSOR_CLOCK
12
13choice
14	prompt "Sensor clock type"
15	default SENSOR_CLOCK_SYSTEM
16	help
17	  Select the clock source to be used for sensor timing.
18
19config SENSOR_CLOCK_SYSTEM
20	bool "Use the system counter for sensor time"
21
22config SENSOR_CLOCK_COUNTER
23	bool "Use a counter device/API for sensor time"
24
25config SENSOR_CLOCK_RTC
26	bool "Use an RTC device/API for sensor time"
27
28endchoice
29
30endif # SENSOR_CLOCK
31