Initial ADC support for AT32 (#12356)
commit4019369ec04ed1888fa10a9770ae8cfed8991804
authorJames <james.kingdon@gmail.com>
Tue, 14 Feb 2023 20:40:00 +0000 (14 15:40 -0500)
committerGitHub <noreply@github.com>
Tue, 14 Feb 2023 20:40:00 +0000 (14 21:40 +0100)
tree5412c10cbdd978e114a7223b51b315f49c931fcc
parent3598f3e41aea7719ee8c6b8ec0c65ba14feca386
Initial ADC support for AT32 (#12356)

Reads internal and external ADC channels.
Internal Vref and temperature tested, external Vbat tested.
Expect temperature to be inaccurate as the AT chips don't come with
per chip calibration.
External current and the generic 'external' channels haven't been tested.
lib/main/AT32F43x/drivers/src/at32f435_437_adc.c
src/main/drivers/adc.c
src/main/drivers/adc.h
src/main/drivers/adc_impl.h
src/main/drivers/at32/adc_at32f43x.c
src/main/drivers/at32/platform_at32.h
src/main/drivers/at32/timer_at32bsp.c
src/main/drivers/timer.h
src/main/target/AT32F435/target.h