zephyr/soc/arm/st_stm32/stm32f2
Song Qiang 7c7db00a77 drivers: adc: add driver support for ADC1 of stm32
This commit adds driver support for ADC1 on all 8 supported series of
stm32 with resolution and conversion time selection and calibration.

Currently DMA is not supported for all series, and without it, zephyr
won't be able to catch up ADC's end of conversion interrupt, so this
version of the driver supports one channel conversion only. Users want
multi-channel conversion should use multiple sequences in their app
code.

This driver uses LL lib rather than HAL because the current HAL lib for
ADC will call HAL_DMA_* functions rather than using zephyr's common DMA
interface, so that way the driver will break the consistency of the
code.

This driver has been tested on multiple nucleo boards including
NUCLEO_F091RC/F103RB/F207ZG/F302R8/F401RE/F746ZG/L073RZ/L476RG and all
passed the test cases in tests/drivers/adc/adc_api. If the external ADC
line is floating, it may fail the tests since ADC may get 0V and the
test cases think 0 is failing. Connect it to any voltage source between
0-3.3V will help passing the test cases.

Signed-off-by: Song Qiang <songqiang1304521@gmail.com>
2019-05-07 23:15:58 -04:00
..
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
Kconfig.defconfig.series soc/arm/st_stm32: Add comments on Kconfig.defconfig organization 2019-03-06 09:38:02 -06:00
Kconfig.defconfig.stm32f207xx arm: soc: move arm SoCs to top-dir 2018-09-13 00:56:48 -04:00
Kconfig.series soc: arm: select CPU_HAS_SYSTICK in ARCH Kconfig 2019-04-25 23:09:23 -07:00
Kconfig.soc arm: soc: move arm SoCs to top-dir 2018-09-13 00:56:48 -04:00
dts_fixup.h dts: arm: stm32: add dts support for ADC1 of stm32 2019-05-07 23:15:58 -04:00
linker.ld arm: soc: move arm SoCs to top-dir 2018-09-13 00:56:48 -04:00
soc.c soc: Rename reserved function names 2019-04-03 17:31:00 -04:00
soc.h drivers: adc: add driver support for ADC1 of stm32 2019-05-07 23:15:58 -04:00
soc_registers.h soc: arm: st_stm32: Using LL library to implement gpio functions 2019-01-10 13:09:19 -06:00