zephyr/drivers/adc
Affrin Pinhero 2c61c06a0e drivers/ADC: STM32: This solves coverity reported in ADC driver.
This commit it to resolve following bugs:
* Operands don't affect result.
* Logical dead code in stm32_adc driver.
Above mentioned bugs were solved by adding parenthesis and
changed the method of comparing. Since comparison of ADC
channel_id with the channel may cause loss of value.
So instead of direct comparison, introduced a mechanism to
convert channel constant to a decimal using
__LL_ADC_CHANNEL_TO_DECIMAL_NB() and strips away
the INTERNAL_CH bit and then compare with channel_id.

fix:
* zephyrproject-rtos/zephyr#35130
* zephyrproject-rtos/zephyr#35136

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-05-27 15:55:19 -05:00
..
adc_cc32xx.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_common.c
adc_context.h
adc_emul.c drivers: adc: add ADC emulator 2021-05-07 15:27:37 +02:00
adc_handlers.c
adc_ite_it8xxx2.c ite: drivers/adc: it8xxx2: fix adc driver flow 2021-05-13 11:54:05 -04:00
adc_lmp90xxx.c drivers: adc: lmp90xxx: check read REG_ADC_DONE error code 2021-05-25 12:53:35 -05:00
adc_mchp_xec.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_mcp320x.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_mcux_adc12.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_mcux_adc16.c adc: adc dma driver 2021-05-07 08:23:49 -05:00
adc_mcux_lpadc.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_npcx.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_nrfx_adc.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_nrfx_saadc.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_sam0.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_sam_afec.c drivers: adc: remove usage of device_pm_control_nop 2021-04-28 10:54:22 -04:00
adc_shell.c drivers: adc: add ADC emulator 2021-05-07 15:27:37 +02:00
adc_stm32.c drivers/ADC: STM32: This solves coverity reported in ADC driver. 2021-05-27 15:55:19 -05:00
CMakeLists.txt drivers: adc: add ADC emulator 2021-05-07 15:27:37 +02:00
Kconfig drivers: adc: add ADC emulator 2021-05-07 15:27:37 +02:00
Kconfig.adc_emul drivers: adc: add ADC emulator 2021-05-07 15:27:37 +02:00
Kconfig.cc32xx drivers: adc: cc32xx: Add support 2021-02-19 10:43:58 -06:00
Kconfig.it8xxx2 ite: drivers/adc: add adc drivers on it8xxx2_evb platform 2021-04-13 13:01:56 -04:00
Kconfig.lmp90xxx
Kconfig.mcp320x
Kconfig.mcux adc: adc dma driver 2021-05-07 08:23:49 -05:00
Kconfig.npcx driver: npcx7: fixed typo in Kconfig.npcx files. 2020-12-07 12:11:17 -05:00
Kconfig.nrfx
Kconfig.sam0
Kconfig.sam_afec
Kconfig.stm32
Kconfig.xec