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:
parent
38566ef482
commit
7f68c0aa2c
13 changed files with 1 additions and 48 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue