Skip to content

Commit 23a03b7

Browse files
marwaiehm-stcarlescufi
authored andcommitted
drivers: counter: ll_stm32_timer: G4X changes
Use "const LL_TIM_OC_GetCompareCHx" & "const LL_TIM_IsEnabledIT_CCx" with STM32G4X series, following changes in stm32cube:stm32g4xx:drivers: include:stm32g4xx_ll_tim.h Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <[email protected]>
1 parent 99fd91b commit 23a03b7

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_STM32G4X) && \
46-
!defined(CONFIG_SOC_SERIES_STM32MP1X)
45+
#if !defined(CONFIG_SOC_SERIES_STM32MP1X)
4746
static uint32_t(*const get_timer_compare[TIMER_MAX_CH])(const TIM_TypeDef *) = {
4847
LL_TIM_OC_GetCompareCH1, LL_TIM_OC_GetCompareCH2,
4948
LL_TIM_OC_GetCompareCH3, LL_TIM_OC_GetCompareCH4,
@@ -68,8 +67,7 @@ static void(*const disable_it[TIMER_MAX_CH])(TIM_TypeDef *) = {
6867

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

0 commit comments

Comments
 (0)