zephyr/drivers/pwm/Kconfig.wch
Michael Hope b1aadb6729 drivers: pwm: add a CH32V00x General-prupose Timer Module (GPTM) driver
The GPTM is a general purpose module with a 16 bit prescaler, 16 bit
counter, and 4 compare units that can be used for PWM generation.

Use the same style as gd32 where the timer is a counter and the PWM
mode is a child node.

Signed-off-by: Michael Hope <michaelh@juju.nz>
2025-05-05 21:56:38 +02:00

11 lines
296 B
Plaintext

# Copyright (c) 2025 Michael Hope <michaelh@juju.nz>
# SPDX-License-Identifier: Apache-2.0
config PWM_WCH_GPTM
bool "WCH General-purpose Timer (GPTM) for PWM"
default y
depends on DT_HAS_WCH_GPTM_PWM_ENABLED
select PINCTRL
help
PWM driver for the WCH GPTM, such as TIM2 on the CH32V003.