Chen Wang
60c6fc0e3a
components: drivers: adc: fixed cppcheck error
...
[cpp_check.py 80 INFO] components/drivers/misc/adc.c:76:12:
error: Uninitialized variable: result [legacyUninitvar]
return result;
^
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-06-10 14:21:46 +08:00
Chen Wang
ae86c6e8bb
componnets: drivers: adc: remove build warnings
...
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 <unicorn_wang@outlook.com>
2025-06-10 14:21:46 +08:00
yiyi
bc3afab2c9
[bsp][stm32]Optimize ADCs and fix some bugs
2024-06-26 20:26:52 +08:00
sp-cai
884e391954
[fix][misc][adc] 修复 ADC 电压转换的计算错误
2024-06-03 11:31:30 +08:00
Mingjie Shen
177f3d4056
[adc] remove dead code
...
The variable result_str is never used after this assignment.
2023-06-13 17:47:54 -04:00
7YZ7
501b22aabe
[HUST CSE] Fix many abnormal symbols in annotations and format code
2023-04-17 22:26:23 -04:00
Meco Man
e9bbc2e349
[adc] modify adc channel data type from rt_uint32_t to rt_int8_t
2023-04-08 22:40:37 -04:00
Meco Man
f58d3c5200
rt_device_write/read return data type as rt_ssize_t
...
rt_ssize_t can give negative error code, which follows the unix style correctly
2023-02-07 21:43:57 -05:00
YuQi
94221bbdd8
[bsp][c28x] 新增adc驱动 ( #6520 )
...
1. 在c28x文件目录上一层再套一层文件夹ti,目前28379的项目路径为rt-thread\bsp\ti\c28x\tms320f28379d
2. 新增adc驱动与kconfig配置
2022-10-15 00:56:00 -04:00
Stanley Lwin
04a17d469a
[device][adc] implement adc_get_vref ( #5988 )
...
* add adc_get_vref
add stm32_adc_get_vref
2022-05-29 10:22:33 +08:00
Meco Man
42a136288d
[adc][pwm] correct the command description
2022-05-25 10:04:33 +08:00
Stanley Lwin
f92c26a60b
[adc.c] add finsh voltage conversion command ( #5937 )
...
* Update adc.c
add finsh voltage conversion command
2022-05-19 10:36:50 +08:00
Meco Man
175ca2ee09
[dac] add get resolution method
2022-04-23 23:03:59 +08:00
Man, Jianting (Meco)
c2a0995545
[adc] 支持adc框架获取BSP的ADC分辨率 ( #5853 )
2022-04-22 22:26:41 +08:00
Tangyuxin
da3d61e043
[device]Detailed classification of devices types ( #5769 )
2022-04-06 21:12:39 +08:00
马志远
221da7f464
Remove C Style Command Shell
2021-08-23 17:30:05 +08:00
Meco Man
3c05a4e719
[compoenets] auto & manual formatted
2021-03-08 18:19:04 +08:00
armink
fa4d4ab7cf
Update all of debug log definition to DBG_TAG and DBG_LVL.
2019-04-12 10:18:57 +08:00
misonyo
97c930cd65
[components]add rt_device_ops for adc device and fix finsh_getchar() return wrong value in Big-endian status.
2019-03-23 09:47:45 +08:00
armink
0d7ba79219
Remove the DBG_COLOR and DBG_ENABLE definition.
2019-03-06 17:54:30 +08:00
KE1VG8CBMISQ6ED\Administrator
895fb5c1a9
Update adc.c
...
check fun is NULL, error
2018-12-08 22:56:34 +08:00
chenchaoqun@rt-thread.com
049944529f
[add] adc framework
2018-11-20 10:08:31 +08:00