drivers: pwm: 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
39d388287f
commit
fc1c284c9c
15 changed files with 2 additions and 56 deletions
|
@ -10,6 +10,8 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include <soc.h>
|
#include <soc.h>
|
||||||
|
#include <stm32_ll_rcc.h>
|
||||||
|
#include <stm32_ll_tim.h>
|
||||||
#include <drivers/pwm.h>
|
#include <drivers/pwm.h>
|
||||||
#include <device.h>
|
#include <device.h>
|
||||||
#include <kernel.h>
|
#include <kernel.h>
|
||||||
|
|
|
@ -57,10 +57,6 @@
|
||||||
#include <stm32f0xx_ll_dma.h>
|
#include <stm32f0xx_ll_dma.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
|
||||||
#include <stm32f0xx_ll_tim.h>
|
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
|
||||||
|
|
||||||
#endif /* !_ASMLANGUAGE */
|
#endif /* !_ASMLANGUAGE */
|
||||||
|
|
||||||
#endif /* _STM32F0_SOC_H_ */
|
#endif /* _STM32F0_SOC_H_ */
|
||||||
|
|
|
@ -51,10 +51,6 @@
|
||||||
#include <stm32f1xx_ll_dma.h>
|
#include <stm32f1xx_ll_dma.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
|
||||||
#include <stm32f1xx_ll_tim.h>
|
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
|
||||||
|
|
||||||
#endif /* !_ASMLANGUAGE */
|
#endif /* !_ASMLANGUAGE */
|
||||||
|
|
||||||
#endif /* _STM32F1_SOC_H_ */
|
#endif /* _STM32F1_SOC_H_ */
|
||||||
|
|
|
@ -48,10 +48,6 @@
|
||||||
#include <stm32f2xx_ll_dma.h>
|
#include <stm32f2xx_ll_dma.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
|
||||||
#include <stm32f2xx_ll_tim.h>
|
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
|
||||||
|
|
||||||
#endif /* !_ASMLANGUAGE */
|
#endif /* !_ASMLANGUAGE */
|
||||||
|
|
||||||
#endif /* _STM32F2_SOC_H_ */
|
#endif /* _STM32F2_SOC_H_ */
|
||||||
|
|
|
@ -58,10 +58,6 @@
|
||||||
#include <stm32f3xx_ll_dma.h>
|
#include <stm32f3xx_ll_dma.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
|
||||||
#include <stm32f3xx_ll_tim.h>
|
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
|
||||||
|
|
||||||
#endif /* !_ASMLANGUAGE */
|
#endif /* !_ASMLANGUAGE */
|
||||||
|
|
||||||
#endif /* _STM32F3_SOC_H_ */
|
#endif /* _STM32F3_SOC_H_ */
|
||||||
|
|
|
@ -60,10 +60,6 @@
|
||||||
#include <stm32f4xx_ll_dma.h>
|
#include <stm32f4xx_ll_dma.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
|
||||||
#include <stm32f4xx_ll_tim.h>
|
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
|
||||||
|
|
||||||
#endif /* !_ASMLANGUAGE */
|
#endif /* !_ASMLANGUAGE */
|
||||||
|
|
||||||
#endif /* _STM32F4_SOC_H_ */
|
#endif /* _STM32F4_SOC_H_ */
|
||||||
|
|
|
@ -60,10 +60,6 @@
|
||||||
#include <stm32f7xx_ll_dma.h>
|
#include <stm32f7xx_ll_dma.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
|
||||||
#include <stm32f7xx_ll_tim.h>
|
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
|
||||||
|
|
||||||
#endif /* !_ASMLANGUAGE */
|
#endif /* !_ASMLANGUAGE */
|
||||||
|
|
||||||
#endif /* _STM32F7_SOC_H_ */
|
#endif /* _STM32F7_SOC_H_ */
|
||||||
|
|
|
@ -47,10 +47,6 @@
|
||||||
#include <stm32g0xx_ll_i2c.h>
|
#include <stm32g0xx_ll_i2c.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
|
||||||
#include <stm32g0xx_ll_tim.h>
|
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
|
||||||
|
|
||||||
/* Add include for DTS generated information */
|
/* Add include for DTS generated information */
|
||||||
#include <devicetree.h>
|
#include <devicetree.h>
|
||||||
|
|
||||||
|
|
|
@ -57,10 +57,6 @@
|
||||||
#include <stm32g4xx_ll_pwr.h>
|
#include <stm32g4xx_ll_pwr.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
|
||||||
#include <stm32g4xx_ll_tim.h>
|
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
|
||||||
|
|
||||||
#endif /* !_ASMLANGUAGE */
|
#endif /* !_ASMLANGUAGE */
|
||||||
|
|
||||||
#endif /* _STM32G4_SOC_H_ */
|
#endif /* _STM32G4_SOC_H_ */
|
||||||
|
|
|
@ -63,10 +63,6 @@
|
||||||
#include <stm32h7xx_ll_spi.h>
|
#include <stm32h7xx_ll_spi.h>
|
||||||
#endif /* CONFIG_SPI_STM32 */
|
#endif /* CONFIG_SPI_STM32 */
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
|
||||||
#include <stm32h7xx_ll_tim.h>
|
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
|
||||||
|
|
||||||
#endif /* !_ASMLANGUAGE */
|
#endif /* !_ASMLANGUAGE */
|
||||||
|
|
||||||
#endif /* _STM32F7_SOC_H7_ */
|
#endif /* _STM32F7_SOC_H7_ */
|
||||||
|
|
|
@ -57,10 +57,6 @@
|
||||||
#include <stm32l0xx_ll_dma.h>
|
#include <stm32l0xx_ll_dma.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
|
||||||
#include <stm32l0xx_ll_tim.h>
|
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
|
||||||
|
|
||||||
#endif /* !_ASMLANGUAGE */
|
#endif /* !_ASMLANGUAGE */
|
||||||
|
|
||||||
#endif /* _STM32L0_SOC_H_ */
|
#endif /* _STM32L0_SOC_H_ */
|
||||||
|
|
|
@ -53,10 +53,6 @@
|
||||||
#include <stm32l1xx_ll_spi.h>
|
#include <stm32l1xx_ll_spi.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
|
||||||
#include <stm32l1xx_ll_tim.h>
|
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
|
||||||
|
|
||||||
#endif /* !_ASMLANGUAGE */
|
#endif /* !_ASMLANGUAGE */
|
||||||
|
|
||||||
#endif /* _STM32L1_SOC_H_ */
|
#endif /* _STM32L1_SOC_H_ */
|
||||||
|
|
|
@ -75,10 +75,6 @@
|
||||||
#include <stm32l4xx_ll_system.h>
|
#include <stm32l4xx_ll_system.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
|
||||||
#include <stm32l4xx_ll_tim.h>
|
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
|
||||||
|
|
||||||
#endif /* !_ASMLANGUAGE */
|
#endif /* !_ASMLANGUAGE */
|
||||||
|
|
||||||
#endif /* _STM32L4X_SOC_H_ */
|
#endif /* _STM32L4X_SOC_H_ */
|
||||||
|
|
|
@ -50,10 +50,6 @@
|
||||||
#include <stm32mp1xx_ll_i2c.h>
|
#include <stm32mp1xx_ll_i2c.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
|
||||||
#include <stm32mp1xx_ll_tim.h>
|
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
|
||||||
|
|
||||||
#endif /* !_ASMLANGUAGE */
|
#endif /* !_ASMLANGUAGE */
|
||||||
|
|
||||||
#endif /* _STM32MP1SOC_H_ */
|
#endif /* _STM32MP1SOC_H_ */
|
||||||
|
|
|
@ -65,10 +65,6 @@
|
||||||
#include <stm32wbxx_ll_dmamux.h>
|
#include <stm32wbxx_ll_dmamux.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
|
||||||
#include <stm32wbxx_ll_tim.h>
|
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
|
||||||
|
|
||||||
#endif /* !_ASMLANGUAGE */
|
#endif /* !_ASMLANGUAGE */
|
||||||
|
|
||||||
#endif /* _STM32WBX_SOC_H_ */
|
#endif /* _STM32WBX_SOC_H_ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue