Skip to content

Commit 99fd91b

Browse files
marwaiehm-stcarlescufi
authored andcommitted
drivers: pwm: pwm_stm32: G4X changes
Use "const LL_TIM_IC_GetCaptureCHx" & "const LL_TIM_IsActiveFlag_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 ccd1019 commit 99fd91b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/pwm/pwm_stm32.c

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

143143
/** Channel to capture get function mapping. */
144-
#if !defined(CONFIG_SOC_SERIES_STM32G4X) && \
145-
!defined(CONFIG_SOC_SERIES_STM32MP1X)
144+
#if !defined(CONFIG_SOC_SERIES_STM32MP1X)
146145
static uint32_t __maybe_unused (*const get_channel_capture[])(const TIM_TypeDef *) = {
147146
#else
148147
static uint32_t __maybe_unused (*const get_channel_capture[])(TIM_TypeDef *) = {
@@ -165,8 +164,7 @@ static void __maybe_unused (*const disable_capture_interrupt[])(TIM_TypeDef *) =
165164
};
166165

167166
/** Channel to is capture active flag mapping. */
168-
#if !defined(CONFIG_SOC_SERIES_STM32G4X) && \
169-
!defined(CONFIG_SOC_SERIES_STM32MP1X)
167+
#if !defined(CONFIG_SOC_SERIES_STM32MP1X)
170168
static uint32_t __maybe_unused (*const is_capture_active[])(const TIM_TypeDef *) = {
171169
#else
172170
static uint32_t __maybe_unused (*const is_capture_active[])(TIM_TypeDef *) = {

0 commit comments

Comments
 (0)