Files
rt-thread/components/drivers/clock_time/Kconfig
T
wdfk-prog 937be2c97d feat[ADC]: 新增 ADC V2 驱动支持 (#11440)
* feat[ADC V2]: add ADC V2 driver support

add ADC V2 core APIs, session state management, and sequence read support
add STM32 ADC V2 HAL backend with internal-channel and VREF handling
add per-series STM32 ADC V2 default configuration headers
wire ADC V2 Kconfig and SConscript integration for components and STM32 BSP drivers
keep ADC V2 mutually exclusive with the legacy ADC driver path

* feat[ADC V2]: add ADC V2 MSH special channel read support

add generic ADC V2 MSH commands for probing, configuring, raw reads, voltage reads, and sequence reads
add STM32 ADC V2 backend special commands for VREFINT, temperature sensor, and VBAT reads
add STM32 helper APIs for special logical channels, sampling time, resolution, and temperature calculation
wire ADC V2 MSH sources through Kconfig and SConscript

* feat[ADC V2]: add ADC V2 stream DMA support

add ADC V2 stream APIs with latest-frame and FIFO buffering policies
wire STM32 ADC V2 to circular DMA stream mode with per-instance Kconfig options
extend STM32 ADC config headers and DMA helpers for stream DMA configuration
add FinSH stream commands for start, read, cancel, and stop operations
handle Cortex-M7 cache-safe DMA buffers for STM32 stream sampling

* feat[ADC V2]: add timer trigger support for ADC V2 streams

add ADC V2 trigger configuration, validation, and lifecycle coordination
add timer update trigger support through clock timer TRGO controls
map STM32 ADC V2 timer update triggers to HAL external trigger selector fields
add Kconfig, SConscript, and MSH entries for ADC trigger setup and inspection

* feat[ADCV2]: add timer and comparator trigger selectors

add ADC V2 timer compare and analog comparator trigger configuration support
extend clock timer trigger config with compare event and channel fields
wire STM32 ADC external trigger selector mappings for TIM update, TIM compare, and COMP output
add FinSH trigger_set commands and Kconfig switches for timer and comparator trigger backends

* fix[ADC V2]: resolve ADC V1 compatibility Kconfig loop

* ci[ADC V2][stm32]: add ADC v2 peripheral config for stm32f407-rt-spark BSP
2026-07-07 08:59:22 +08:00

34 lines
1014 B
Plaintext

menuconfig RT_USING_CLOCK_TIME
bool "Clock time subsystem"
default n
config RT_USING_CLOCK_TIMER_TRIGGER
bool "Enable clock timer hardware trigger output"
depends on RT_USING_CLOCK_TIME
default n
help
Enable clock timer hardware trigger output controls. Timer backends
may use this to expose update/TRGO trigger events to ADC drivers. The
selected timer must be dedicated to trigger output; the framework does
not arbitrate shared use with clock-time timeouts, PWM, or other timer
consumers.
if RT_USING_CLOCK_TIME
config CLOCK_TIMER_FREQ
int "Clock time timer freq"
default 0
depends on ARCH_RISCV64
help
Base frequency (Hz) for clock time counter on RISC-V.
config RT_CLOCK_TIME_ARM_ARCH
bool "ARM ARCH Timer"
depends on RT_USING_DM
depends on ARCH_ARM_CORTEX_A || ARCH_ARMV8
default n
if RT_USING_DM
osource "$(SOC_DM_CLOCK_TIME_DIR)/Kconfig"
endif
endif