stm32: adc for new stm32f0 common code (#2120)

Derived from stm32/adc.c and stm32f0/adc.c with additional changes.

Tested on Monoprice Mini Delta (malyan) stm32f070xb board.

Signed-off-by: Chris Lombardi <clearchris@hotmail.com>
This commit is contained in:
clearchris
2019-11-05 09:08:32 -06:00
committed by KevinOConnor
parent cf6e8a2eee
commit 009d14fc3e
4 changed files with 144 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ config STM32_SELECT
bool
default y
select HAVE_GPIO
select HAVE_GPIO_ADC if !MACH_STM32F0
select HAVE_GPIO_ADC
select HAVE_GPIO_I2C if !MACH_STM32F0
select HAVE_GPIO_SPI
select HAVE_GPIO_BITBANGING