From 0f109297e4a071a2ef876339fcc573da7b6b06b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20J=C3=A4ger?= Date: Sat, 12 Dec 2020 18:21:15 +0100 Subject: [PATCH] Use generic LL headers --- src/daq_driver.c | 24 +++++------------------- src/load_driver.c | 6 +----- src/pwm_switch_driver.c | 14 ++++---------- 3 files changed, 10 insertions(+), 34 deletions(-) diff --git a/src/daq_driver.c b/src/daq_driver.c index 5dee52c..05506b9 100644 --- a/src/daq_driver.c +++ b/src/daq_driver.c @@ -14,25 +14,11 @@ #include #include -#if defined(CONFIG_SOC_SERIES_STM32L0X) -#include -#include -#include -#include -#include -#elif defined(CONFIG_SOC_SERIES_STM32F0X) -#include -#include -#include -#include -#include -#elif defined(CONFIG_SOC_SERIES_STM32G4X) -#include -#include -#include -#include -#include -#endif +#include +#include +#include +#include +#include #include "dcdc.h" // for low-level control function called by DMA diff --git a/src/load_driver.c b/src/load_driver.c index ff9a5fc..a46debd 100644 --- a/src/load_driver.c +++ b/src/load_driver.c @@ -17,11 +17,7 @@ #include "leds.h" #include "mcu.h" -#if defined(CONFIG_SOC_SERIES_STM32L0X) -#include -#elif defined(CONFIG_SOC_SERIES_STM32G4X) -#include -#endif +#include #if DT_NODE_EXISTS(DT_CHILD(DT_PATH(outputs), load)) #define LOAD_GPIO DT_CHILD(DT_PATH(outputs), load) diff --git a/src/pwm_switch_driver.c b/src/pwm_switch_driver.c index ca3210d..9a93fa0 100644 --- a/src/pwm_switch_driver.c +++ b/src/pwm_switch_driver.c @@ -15,20 +15,14 @@ #include "helper.h" #include "mcu.h" -#if defined(CONFIG_SOC_SERIES_STM32L0X) -#include -#include -#include -#elif defined(CONFIG_SOC_SERIES_STM32G4X) -#include -#include -#include -#endif - #if DT_NODE_EXISTS(DT_CHILD(DT_PATH(outputs), pwm_switch)) #ifndef UNIT_TEST +#include +#include +#include + // all PWM charge controllers use TIM3 at the moment static TIM_TypeDef *tim = TIM3;