Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: serial: stm32: use generic LL headers #28894

Merged
merged 1 commit into from
Nov 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions drivers/serial/uart_stm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Several soc.h don't include stm32*_ll_lpuart.h header files at the moment, is this handled with dummy/empty include files in the stm32_hal repo ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


#include <logging/log.h>
LOG_MODULE_REGISTER(uart_stm32);

Expand Down
4 changes: 0 additions & 4 deletions soc/arm/st_stm32/stm32f0/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 0 additions & 4 deletions soc/arm/st_stm32/stm32f1/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 0 additions & 4 deletions soc/arm/st_stm32/stm32f2/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions soc/arm/st_stm32/stm32f3/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 0 additions & 4 deletions soc/arm/st_stm32/stm32f4/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions soc/arm/st_stm32/stm32f7/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions soc/arm/st_stm32/stm32g0/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions soc/arm/st_stm32/stm32g4/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions soc/arm/st_stm32/stm32h7/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions soc/arm/st_stm32/stm32l0/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 0 additions & 4 deletions soc/arm/st_stm32/stm32l1/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions soc/arm/st_stm32/stm32l4/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 0 additions & 5 deletions soc/arm/st_stm32/stm32l5/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_ */
4 changes: 0 additions & 4 deletions soc/arm/st_stm32/stm32mp1/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions soc/arm/st_stm32/stm32wb/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down