summaryrefslogtreecommitdiff
path: root/components/drivers/misc/adc.c
AgeCommit message (Collapse)Author
2026-07-07feat[ADC]: 新增 ADC V2 驱动支持 (#11440)wdfk-prog
* 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
2025-12-09[Driver][MISC] Update ADC/PWM (#11003)GUI
* [DM][MISC] Make Kconfig(ADC/PWM) import for DM * [Driver][MISC][ADC] Fixup ADC 1. Fixup error no. 2. Fixup type of control for args. 3. Fixup value no init. * [Driver][MISC][PWM] Enable `rt_pwm_get` API Signed-off-by: GuEe-GUI <[email protected]>
2025-06-10components: drivers: adc: fixed cppcheck errorChen Wang
[cpp_check.py 80 INFO] components/drivers/misc/adc.c:76:12: error: Uninitialized variable: result [legacyUninitvar] return result; ^ Signed-off-by: Chen Wang <[email protected]>
2025-06-10componnets: drivers: adc: remove build warningsChen Wang
gcc build warnings: cast from pointer to integer of different size [-Wpointer-to-int-cast] For rt_adc_ops.enabled, the type of second param is rt_int8_t, original _adc_control also called with wrong type casting. Convert first to rt_base_t, then cast to rt_int8_t to remove the build warnings. Signed-off-by: Chen Wang <[email protected]>
2024-06-26[bsp][stm32]Optimize ADCs and fix some bugsyiyi
2024-06-03[fix][misc][adc] 修复 ADC 电压转换的计算错误sp-cai
2023-06-13[adc] remove dead codeMingjie Shen
The variable result_str is never used after this assignment.
2023-04-17[HUST CSE] Fix many abnormal symbols in annotations and format code7YZ7
2023-04-08[adc] modify adc channel data type from rt_uint32_t to rt_int8_tMeco Man
2023-02-07rt_device_write/read return data type as rt_ssize_tMeco Man
rt_ssize_t can give negative error code, which follows the unix style correctly
2022-10-15[bsp][c28x] 新增adc驱动 (#6520)YuQi
1. 在c28x文件目录上一层再套一层文件夹ti,目前28379的项目路径为rt-thread\bsp\ti\c28x\tms320f28379d 2. 新增adc驱动与kconfig配置
2022-05-29[device][adc] implement adc_get_vref (#5988)Stanley Lwin
* add adc_get_vref add stm32_adc_get_vref
2022-05-25[adc][pwm] correct the command descriptionMeco Man
2022-05-19[adc.c] add finsh voltage conversion command (#5937)Stanley Lwin
* Update adc.c add finsh voltage conversion command
2022-04-23[dac] add get resolution methodMeco Man
2022-04-22[adc] 支持adc框架获取BSP的ADC分辨率 (#5853)Man, Jianting (Meco)
2022-04-06[device]Detailed classification of devices types (#5769)Tangyuxin
2021-08-23Remove C Style Command Shell马志远
2021-03-08[compoenets] auto & manual formattedMeco Man
2019-04-12Update all of debug log definition to DBG_TAG and DBG_LVL.armink
2019-03-23[components]add rt_device_ops for adc device and fix finsh_getchar() return ↵misonyo
wrong value in Big-endian status.
2019-03-06Remove the DBG_COLOR and DBG_ENABLE definition.armink
2018-12-08Update adc.cKE1VG8CBMISQ6ED\Administrator
check fun is NULL, error
2018-11-20[add] adc framework[email protected]