Skip to content

Commit d2ddb65

Browse files
djiatsaf-stcarlescufi
authored andcommitted
drivers: pwm: update stm32 pwm driver
add stm32u0x soc configuration to be able to run test on new boards. Signed-off-by: Fabrice DJIATSA <[email protected]>
1 parent 2756da3 commit d2ddb65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pwm/pwm_stm32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ static int get_tim_clk(const struct stm32_pclken *pclken, uint32_t *tim_clk)
246246
#endif
247247
}
248248
#if !defined(CONFIG_SOC_SERIES_STM32C0X) && !defined(CONFIG_SOC_SERIES_STM32F0X) && \
249-
!defined(CONFIG_SOC_SERIES_STM32G0X)
249+
!defined(CONFIG_SOC_SERIES_STM32G0X) && !defined(CONFIG_SOC_SERIES_STM32U0X)
250250
else {
251251
#if defined(CONFIG_SOC_SERIES_STM32MP1X)
252252
apb_psc = (uint32_t)(READ_BIT(RCC->APB2DIVR, RCC_APB2DIVR_APB2DIV));

0 commit comments

Comments
 (0)