Skip to content

Commit 1f16e9c

Browse files
marwaiehm-stcarlescufi
authored andcommitted
drivers: counter: ll_stm32_timer: F4X changes
Use "const LL_TIM_OC_GetCompareCHx" & "const LL_TIM_IsEnabledIT_CCx" with STM32F4X series, following changes in stm32cube:stm32f4xx:drivers: include:stm32f4xx_ll_tim.h Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <[email protected]>
1 parent 820cf4d commit 1f16e9c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/counter/counter_ll_stm32_timer.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ static void(*const set_timer_compare[TIMER_MAX_CH])(TIM_TypeDef *,
4242
};
4343

4444
/** Channel to compare get function mapping. */
45-
#if !defined(CONFIG_SOC_SERIES_STM32F4X) && \
46-
!defined(CONFIG_SOC_SERIES_STM32G4X) && \
45+
#if !defined(CONFIG_SOC_SERIES_STM32G4X) && \
4746
!defined(CONFIG_SOC_SERIES_STM32MP1X)
4847
static uint32_t(*const get_timer_compare[TIMER_MAX_CH])(const TIM_TypeDef *) = {
4948
LL_TIM_OC_GetCompareCH1, LL_TIM_OC_GetCompareCH2,
@@ -69,8 +68,7 @@ static void(*const disable_it[TIMER_MAX_CH])(TIM_TypeDef *) = {
6968

7069
#ifdef CONFIG_ASSERT
7170
/** Channel to interrupt enable check function mapping. */
72-
#if !defined(CONFIG_SOC_SERIES_STM32F4X) && \
73-
!defined(CONFIG_SOC_SERIES_STM32G4X) && \
71+
#if !defined(CONFIG_SOC_SERIES_STM32G4X) && \
7472
!defined(CONFIG_SOC_SERIES_STM32MP1X)
7573
static uint32_t(*const check_it_enabled[TIMER_MAX_CH])(const TIM_TypeDef *) = {
7674
LL_TIM_IsEnabledIT_CC1, LL_TIM_IsEnabledIT_CC2,

0 commit comments

Comments
 (0)