drivers: pwm: pwm_stm32: Add PWM support on STM32C0-seris
Add support for PWM on the STM32C0-series. Signed-off-by: Benjamin Björnsson <benjamin.bjornsson@gmail.com>
This commit is contained in:
parent
fef4c4e7ea
commit
a52bd0d2e9
|
@ -174,7 +174,8 @@ static int get_tim_clk(const struct stm32_pclken *pclken, uint32_t *tim_clk)
|
|||
if (pclken->bus == STM32_CLOCK_BUS_APB1) {
|
||||
apb_psc = STM32_APB1_PRESCALER;
|
||||
}
|
||||
#if !defined(CONFIG_SOC_SERIES_STM32F0X) && !defined(CONFIG_SOC_SERIES_STM32G0X)
|
||||
#if !defined(CONFIG_SOC_SERIES_STM32C0X) && !defined(CONFIG_SOC_SERIES_STM32F0X) && \
|
||||
!defined(CONFIG_SOC_SERIES_STM32G0X)
|
||||
else {
|
||||
apb_psc = STM32_APB2_PRESCALER;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue