mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-23 20:37:26 +00:00
In npcx7 series, there're 8 Pulse Width Modulator (PWM) modules and each one support generating a single 16-bit PWM output. A 16-bit clock prescaler (PRSCn) and a 16-bit counter (CTRn) determine the cycle time, the minimal possible pulse width, and the duty-cycle steps. Beside introducing pwm driver for Nuvoton NPCX series, this CL also includes: 1. Add PWM device tree declarations. 2. Zephyr PWM api implementation. 3. Add aliases in npcx7m6fb_evb board device tree file for supporting samples/basic/blinky_pwm application and pwm test suites Signed-off-by: Mulin Chao <MLChao@nuvoton.com>
13 lines
361 B
Plaintext
13 lines
361 B
Plaintext
# NPCX PWM driver configuration options
|
|
|
|
# Copyright (c) 2020 Nuvoton Technology Corporation.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config PWM_NPCX
|
|
bool "Nuvoton NPCX embedd controller (EC) PWM driver"
|
|
depends on SOC_FAMILY_NPCX
|
|
help
|
|
This option enables the PWM driver for NPCX family of
|
|
processors.
|
|
Say y if you wish to use pwm ports on NPCX MCU.
|