mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-11 21:35:24 +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>
25 lines
1.2 KiB
CMake
25 lines
1.2 KiB
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_library()
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_PWM_PCA9685 pwm_pca9685.c)
|
|
zephyr_library_sources_ifdef(CONFIG_PWM_DW pwm_dw.c)
|
|
zephyr_library_sources_ifdef(CONFIG_PWM_STM32 pwm_stm32.c)
|
|
zephyr_library_sources_ifdef(CONFIG_PWM_SIFIVE pwm_sifive.c)
|
|
zephyr_library_sources_ifdef(CONFIG_PWM_NRF5_SW pwm_nrf5_sw.c)
|
|
zephyr_library_sources_ifdef(CONFIG_PWM_NRFX pwm_nrfx.c)
|
|
zephyr_library_sources_ifdef(CONFIG_PWM_MCUX_FTM pwm_mcux_ftm.c)
|
|
zephyr_library_sources_ifdef(CONFIG_PWM_IMX pwm_imx.c)
|
|
zephyr_library_sources_ifdef(CONFIG_PWM_LED_ESP32 pwm_led_esp32.c)
|
|
zephyr_library_sources_ifdef(CONFIG_PWM_SAM pwm_sam.c)
|
|
zephyr_library_sources_ifdef(CONFIG_PWM_MCUX pwm_mcux.c)
|
|
zephyr_library_sources_ifdef(CONFIG_PWM_XEC pwm_mchp_xec.c)
|
|
zephyr_library_sources_ifdef(CONFIG_PWM_LITEX pwm_litex.c)
|
|
zephyr_library_sources_ifdef(CONFIG_PWM_RV32M1_TPM pwm_rv32m1_tpm.c)
|
|
zephyr_library_sources_ifdef(CONFIG_PWM_MCUX_TPM pwm_mcux_tpm.c)
|
|
zephyr_library_sources_ifdef(CONFIG_PWM_SAM0_TCC pwm_sam0_tcc.c)
|
|
zephyr_library_sources_ifdef(CONFIG_PWM_NPCX pwm_npcx.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_USERSPACE pwm_handlers.c)
|
|
zephyr_library_sources_ifdef(CONFIG_PWM_SHELL pwm_shell.c)
|