drivers: serial: stm32: use generic LL headers
Use generic LL headers instead of depending on soc.h. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
ca3488cb9b
commit
e83fab32d7
16 changed files with 3 additions and 66 deletions
|
@ -28,6 +28,9 @@
|
|||
#include <drivers/clock_control/stm32_clock_control.h>
|
||||
#include "uart_stm32.h"
|
||||
|
||||
#include <stm32_ll_usart.h>
|
||||
#include <stm32_ll_lpuart.h>
|
||||
|
||||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(uart_stm32);
|
||||
|
||||
|
|
|
@ -28,10 +28,6 @@
|
|||
#include <stm32f0xx_ll_exti.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SERIAL_HAS_DRIVER
|
||||
#include <stm32f0xx_ll_usart.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CLOCK_CONTROL_STM32_CUBE
|
||||
#include <stm32f0xx_ll_utils.h>
|
||||
#include <stm32f0xx_ll_bus.h>
|
||||
|
|
|
@ -28,10 +28,6 @@
|
|||
#include <stm32f1xx_ll_exti.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SERIAL_HAS_DRIVER
|
||||
#include <stm32f1xx_ll_usart.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CLOCK_CONTROL_STM32_CUBE
|
||||
#include <stm32f1xx_ll_utils.h>
|
||||
#include <stm32f1xx_ll_bus.h>
|
||||
|
|
|
@ -34,10 +34,6 @@
|
|||
#include <stm32f2xx_ll_system.h>
|
||||
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
|
||||
|
||||
#ifdef CONFIG_SERIAL_HAS_DRIVER
|
||||
#include <stm32f2xx_ll_usart.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_GPIO_STM32
|
||||
#include <stm32f2xx_ll_gpio.h>
|
||||
#endif
|
||||
|
|
|
@ -29,10 +29,6 @@
|
|||
#include <stm32f3xx_ll_exti.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SERIAL_HAS_DRIVER
|
||||
#include <stm32f3xx_ll_usart.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CLOCK_CONTROL_STM32_CUBE
|
||||
#include <stm32f3xx_ll_utils.h>
|
||||
#include <stm32f3xx_ll_bus.h>
|
||||
|
|
|
@ -38,10 +38,6 @@
|
|||
#include <stm32f4xx_ll_system.h>
|
||||
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
|
||||
|
||||
#ifdef CONFIG_SERIAL_HAS_DRIVER
|
||||
#include <stm32f4xx_ll_usart.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_I2C_STM32
|
||||
#include <stm32f4xx_ll_i2c.h>
|
||||
#endif
|
||||
|
|
|
@ -38,10 +38,6 @@
|
|||
#include <stm32f7xx_ll_pwr.h>
|
||||
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
|
||||
|
||||
#ifdef CONFIG_SERIAL_HAS_DRIVER
|
||||
#include <stm32f7xx_ll_usart.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_I2C_STM32
|
||||
#include <stm32f7xx_ll_i2c.h>
|
||||
#endif
|
||||
|
|
|
@ -55,11 +55,6 @@
|
|||
#include <stm32g0xx_ll_wwdg.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SERIAL_HAS_DRIVER
|
||||
#include <stm32g0xx_ll_usart.h>
|
||||
#include <stm32g0xx_ll_lpuart.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HWINFO_STM32
|
||||
#include <stm32g0xx_ll_utils.h>
|
||||
#endif
|
||||
|
|
|
@ -43,11 +43,6 @@
|
|||
#include <stm32g4xx_ll_gpio.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SERIAL_HAS_DRIVER
|
||||
#include <stm32g4xx_ll_usart.h>
|
||||
#include <stm32g4xx_ll_lpuart.h>
|
||||
#endif /* CONFIG_SERIAL_HAS_DRIVER */
|
||||
|
||||
#ifdef CONFIG_SPI_STM32
|
||||
#include <stm32g4xx_ll_spi.h>
|
||||
#endif
|
||||
|
|
|
@ -50,10 +50,6 @@
|
|||
#include <stm32h7xx_ll_wwdg.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SERIAL_HAS_DRIVER
|
||||
#include <stm32h7xx_ll_usart.h>
|
||||
#endif /* CONFIG_SERIAL_HAS_DRIVER */
|
||||
|
||||
#if defined(CONFIG_HWINFO_STM32) || defined(CONFIG_CLOCK_CONTROL_STM32_CUBE)
|
||||
#include <stm32h7xx_ll_utils.h>
|
||||
#endif
|
||||
|
|
|
@ -29,11 +29,6 @@
|
|||
#include <stm32l0xx_ll_exti.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SERIAL_HAS_DRIVER
|
||||
#include <stm32l0xx_ll_usart.h>
|
||||
#include <stm32l0xx_ll_lpuart.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CLOCK_CONTROL_STM32_CUBE
|
||||
#include <stm32l0xx_ll_utils.h>
|
||||
#include <stm32l0xx_ll_bus.h>
|
||||
|
|
|
@ -31,10 +31,6 @@
|
|||
#include <stm32l1xx_ll_rcc.h>
|
||||
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
|
||||
|
||||
#ifdef CONFIG_SERIAL_HAS_DRIVER
|
||||
#include <stm32l1xx_ll_usart.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_GPIO_STM32
|
||||
#include <stm32l1xx_ll_gpio.h>
|
||||
#endif
|
||||
|
|
|
@ -33,11 +33,6 @@
|
|||
#include <stm32l4xx_ll_exti.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SERIAL_HAS_DRIVER
|
||||
#include <stm32l4xx_ll_usart.h>
|
||||
#include <stm32l4xx_ll_lpuart.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CLOCK_CONTROL_STM32_CUBE
|
||||
#include <stm32l4xx_ll_utils.h>
|
||||
#include <stm32l4xx_ll_bus.h>
|
||||
|
|
|
@ -47,11 +47,6 @@
|
|||
#include <stm32l5xx_ll_i2c.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SERIAL_HAS_DRIVER
|
||||
#include <stm32l5xx_ll_usart.h>
|
||||
#include <stm32l5xx_ll_lpuart.h>
|
||||
#endif
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* _STM32L5_SOC_H_ */
|
||||
|
|
|
@ -40,10 +40,6 @@
|
|||
#include <stm32mp1xx_ll_system.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SERIAL_HAS_DRIVER
|
||||
#include <stm32mp1xx_ll_usart.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SPI_STM32
|
||||
#include <stm32mp1xx_ll_spi.h>
|
||||
#endif
|
||||
|
|
|
@ -32,11 +32,6 @@
|
|||
#include <stm32wbxx_ll_gpio.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SERIAL_HAS_DRIVER
|
||||
#include <stm32wbxx_ll_usart.h>
|
||||
#include <stm32wbxx_ll_lpuart.h>
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_COUNTER_RTC_STM32)
|
||||
#include <stm32wbxx_ll_rtc.h>
|
||||
#include <stm32wbxx_ll_exti.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue