drivers: adc: stm32: use generic LL headers

Use generic LL headers instead of depending on soc.h.

Signed-off-by: Martin Jäger <martin@libre.solar>
This commit is contained in:
Martin Jäger 2020-11-20 15:24:37 +01:00 committed by Carles Cufí
commit 7f68c0aa2c
13 changed files with 1 additions and 48 deletions

View file

@ -16,6 +16,7 @@
#include <kernel.h>
#include <init.h>
#include <soc.h>
#include <stm32_ll_adc.h>
#define ADC_CONTEXT_USES_KERNEL_TIMER
#include "adc_context.h"

View file

@ -61,10 +61,6 @@
#include <stm32f0xx_ll_gpio.h>
#endif
#ifdef CONFIG_ADC_STM32
#include <stm32f0xx_ll_adc.h>
#endif
#ifdef CONFIG_DAC_STM32
#include <stm32f0xx_ll_dac.h>
#endif

View file

@ -55,10 +55,6 @@
#include <stm32f1xx_ll_gpio.h>
#endif
#ifdef CONFIG_ADC_STM32
#include <stm32f1xx_ll_adc.h>
#endif
#ifdef CONFIG_DMA_STM32
#include <stm32f1xx_ll_dma.h>
#endif

View file

@ -52,10 +52,6 @@
#include <stm32f2xx_ll_pwr.h>
#endif
#ifdef CONFIG_ADC_STM32
#include <stm32f2xx_ll_adc.h>
#endif
#ifdef CONFIG_DAC_STM32
#include <stm32f2xx_ll_dac.h>
#endif

View file

@ -62,10 +62,6 @@
#include <stm32f3xx_ll_gpio.h>
#endif
#ifdef CONFIG_ADC_STM32
#include <stm32f3xx_ll_adc.h>
#endif
#ifdef CONFIG_DMA_STM32
#include <stm32f3xx_ll_dma.h>
#endif

View file

@ -68,10 +68,6 @@
#include <stm32f4xx_ll_gpio.h>
#endif
#ifdef CONFIG_ADC_STM32
#include <stm32f4xx_ll_adc.h>
#endif
#ifdef CONFIG_DMA_STM32
#include <stm32f4xx_ll_dma.h>
#endif

View file

@ -68,10 +68,6 @@
#include <stm32f7xx_ll_wwdg.h>
#endif
#ifdef CONFIG_ADC_STM32
#include <stm32f7xx_ll_adc.h>
#endif
#ifdef CONFIG_DMA_STM32
#include <stm32f7xx_ll_dma.h>
#endif

View file

@ -51,10 +51,6 @@
#include <stm32g4xx_ll_i2c.h>
#endif /* CONFIG_I2C */
#ifdef CONFIG_ADC_STM32
#include <stm32g4xx_ll_adc.h>
#endif
#ifdef CONFIG_DAC_STM32
#include <stm32g4xx_ll_dac.h>
#endif

View file

@ -68,10 +68,6 @@
#include <stm32h7xx_ll_spi.h>
#endif /* CONFIG_SPI_STM32 */
#ifdef CONFIG_ADC_STM32
#include <stm32h7xx_ll_adc.h>
#endif /* CONFIG_ADC_STM32 */
#ifdef CONFIG_PWM_STM32
#include <stm32h7xx_ll_tim.h>
#endif /* CONFIG_PWM_STM32 */

View file

@ -61,10 +61,6 @@
#include <stm32l0xx_ll_wwdg.h>
#endif
#ifdef CONFIG_ADC_STM32
#include <stm32l0xx_ll_adc.h>
#endif
#ifdef CONFIG_DAC_STM32
#include <stm32l0xx_ll_dac.h>
#endif

View file

@ -43,10 +43,6 @@
#include <stm32l1xx_ll_i2c.h>
#endif
#ifdef CONFIG_ADC_STM32
#include <stm32l1xx_ll_adc.h>
#endif
#ifdef CONFIG_DAC_STM32
#include <stm32l1xx_ll_dac.h>
#endif

View file

@ -78,10 +78,6 @@
#include <stm32l4xx_ll_pwr.h>
#endif
#ifdef CONFIG_ADC_STM32
#include <stm32l4xx_ll_adc.h>
#endif
#ifdef CONFIG_DMA_STM32
#include <stm32l4xx_ll_dma.h>
#endif

View file

@ -58,10 +58,6 @@
#include <stm32wbxx_ll_spi.h>
#endif /* CONFIG_SPI_STM32 */
#ifdef CONFIG_ADC_STM32
#include <stm32wbxx_ll_adc.h>
#endif /* CONFIG_ADC_STM32 */
#ifdef CONFIG_IWDG_STM32
#include <stm32wbxx_ll_iwdg.h>
#endif /* CONFIG_IWDG_STM32 */