drivers: hwinfo: 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
505861e822
commit
39d388287f
10 changed files with 2 additions and 33 deletions
|
@ -5,6 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <soc.h>
|
#include <soc.h>
|
||||||
|
#include <stm32_ll_utils.h>
|
||||||
#include <drivers/hwinfo.h>
|
#include <drivers/hwinfo.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/byteorder.h>
|
#include <sys/byteorder.h>
|
||||||
|
|
|
@ -57,10 +57,6 @@
|
||||||
#include <stm32f0xx_ll_dma.h>
|
#include <stm32f0xx_ll_dma.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_HWINFO_STM32
|
|
||||||
#include <stm32f0xx_ll_utils.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
#ifdef CONFIG_PWM_STM32
|
||||||
#include <stm32f0xx_ll_tim.h>
|
#include <stm32f0xx_ll_tim.h>
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
#endif /* CONFIG_PWM_STM32 */
|
||||||
|
|
|
@ -51,10 +51,6 @@
|
||||||
#include <stm32f1xx_ll_dma.h>
|
#include <stm32f1xx_ll_dma.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_HWINFO_STM32
|
|
||||||
#include <stm32f1xx_ll_utils.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
#ifdef CONFIG_PWM_STM32
|
||||||
#include <stm32f1xx_ll_tim.h>
|
#include <stm32f1xx_ll_tim.h>
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
#endif /* CONFIG_PWM_STM32 */
|
||||||
|
|
|
@ -48,10 +48,6 @@
|
||||||
#include <stm32f2xx_ll_dma.h>
|
#include <stm32f2xx_ll_dma.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_HWINFO_STM32
|
|
||||||
#include <stm32f2xx_ll_utils.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
#ifdef CONFIG_PWM_STM32
|
||||||
#include <stm32f2xx_ll_tim.h>
|
#include <stm32f2xx_ll_tim.h>
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
#endif /* CONFIG_PWM_STM32 */
|
||||||
|
|
|
@ -58,10 +58,6 @@
|
||||||
#include <stm32f3xx_ll_dma.h>
|
#include <stm32f3xx_ll_dma.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_HWINFO_STM32
|
|
||||||
#include <stm32f3xx_ll_utils.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
#ifdef CONFIG_PWM_STM32
|
||||||
#include <stm32f3xx_ll_tim.h>
|
#include <stm32f3xx_ll_tim.h>
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
#endif /* CONFIG_PWM_STM32 */
|
||||||
|
|
|
@ -60,10 +60,6 @@
|
||||||
#include <stm32f4xx_ll_dma.h>
|
#include <stm32f4xx_ll_dma.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_HWINFO_STM32
|
|
||||||
#include <stm32f4xx_ll_utils.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
#ifdef CONFIG_PWM_STM32
|
||||||
#include <stm32f4xx_ll_tim.h>
|
#include <stm32f4xx_ll_tim.h>
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
#endif /* CONFIG_PWM_STM32 */
|
||||||
|
|
|
@ -60,10 +60,6 @@
|
||||||
#include <stm32f7xx_ll_dma.h>
|
#include <stm32f7xx_ll_dma.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_HWINFO_STM32
|
|
||||||
#include <stm32f7xx_ll_utils.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
#ifdef CONFIG_PWM_STM32
|
||||||
#include <stm32f7xx_ll_tim.h>
|
#include <stm32f7xx_ll_tim.h>
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
#endif /* CONFIG_PWM_STM32 */
|
||||||
|
|
|
@ -47,10 +47,6 @@
|
||||||
#include <stm32g0xx_ll_i2c.h>
|
#include <stm32g0xx_ll_i2c.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_HWINFO_STM32
|
|
||||||
#include <stm32g0xx_ll_utils.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
#ifdef CONFIG_PWM_STM32
|
||||||
#include <stm32g0xx_ll_tim.h>
|
#include <stm32g0xx_ll_tim.h>
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
#endif /* CONFIG_PWM_STM32 */
|
||||||
|
|
|
@ -57,10 +57,6 @@
|
||||||
#include <stm32g4xx_ll_pwr.h>
|
#include <stm32g4xx_ll_pwr.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_HWINFO_STM32
|
|
||||||
#include <stm32g4xx_ll_utils.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_STM32
|
#ifdef CONFIG_PWM_STM32
|
||||||
#include <stm32g4xx_ll_tim.h>
|
#include <stm32g4xx_ll_tim.h>
|
||||||
#endif /* CONFIG_PWM_STM32 */
|
#endif /* CONFIG_PWM_STM32 */
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
#include <stm32h7xx_ll_system.h>
|
#include <stm32h7xx_ll_system.h>
|
||||||
#endif /* CONFIG_GPIO_STM32 */
|
#endif /* CONFIG_GPIO_STM32 */
|
||||||
|
|
||||||
#if defined(CONFIG_HWINFO_STM32) || defined(CONFIG_CLOCK_CONTROL_STM32_CUBE)
|
#if defined(CONFIG_CLOCK_CONTROL_STM32_CUBE)
|
||||||
#include <stm32h7xx_ll_utils.h>
|
#include <stm32h7xx_ll_utils.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue