zephyr/drivers/pwm/Kconfig.stm32
Sean Nyekjaer 25d496949f drivers: pwm: pwm_stm32: reset timer using RCC before initialization
If a timer is left running on an stm32mp1, (most likely) on the next run
the timer is stuck.
A simple timer reset before initialization fixes the issue.

Signed-off-by: Sean Nyekjaer <sean@geanix.com>
2023-07-20 10:36:10 +00:00

17 lines
471 B
Plaintext

# STM32 PWM configuration options
# Copyright (c) 2016 Linaro Limited.
# SPDX-License-Identifier: Apache-2.0
config PWM_STM32
bool "STM32 MCU PWM driver"
default y
depends on DT_HAS_ST_STM32_PWM_ENABLED
select USE_STM32_LL_TIM
select USE_STM32_LL_RCC if SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X || SOC_SERIES_STM32H7X
select RESET
help
This option enables the PWM driver for STM32 family of
processors. Say y if you wish to use PWM port on STM32
MCU.