zephyr/drivers/pwm
Pieter De Gendt bab23bbe6c drivers: pwm: pwm_mcux: Round up PWM frequency to prevent overflow
The HAL function PWM_SetupPwm does the inverse division to get the
number of pulses from the frequency.
In the case of a prescaler of 1 and a period of UINT16_MAX cycles
this would result in an uint16_t overflow.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2023-05-09 16:23:35 +09:00
..
CMakeLists.txt drivers: pwm: Add Microchip XEC BBLED PWM driver 2023-02-19 20:40:22 -05:00
Kconfig drivers: kconfig: unify menuconfig title strings 2023-03-28 15:06:06 +02:00
Kconfig.b91 drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.esp32 drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.gd32 drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.gecko drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.imx drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.it8xxx2 drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.litex drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.mcux drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.mcux_ftm drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.mcux_pwt drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.mcux_sctimer drivers: all: mcux: remove conditional support for pinctrl 2023-04-24 13:34:22 +02:00
Kconfig.mcux_tpm drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.npcx drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.nrf5_sw drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.nrfx drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.pca9685 drivers: pwm: add NXP PCA9685 controller 2023-01-11 09:38:18 +01:00
Kconfig.rcar drivers: pwm: add Renesas R-Car driver 2022-09-07 15:50:49 +02:00
Kconfig.rpi_pico drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.rv32m1_tpm drivers: all: rv32m1: remove conditional support for pinctrl 2023-04-24 13:34:22 +02:00
Kconfig.sam drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.sam0 drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.sifive drivers: pwm: Use a common initialization priority 2022-10-03 15:24:38 -04:00
Kconfig.stm32 drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.test drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
Kconfig.xec drivers: all: mchp_xec: remove conditional support for pinctrl 2023-04-24 13:34:22 +02:00
Kconfig.xlnx drivers: pwm: Update drivers to use devicetree Kconfig symbol 2022-07-22 07:50:44 -05:00
pwm_b91.c drivers: pwm: Use a common initialization priority 2022-10-03 15:24:38 -04:00
pwm_capture.c includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
pwm_gd32.c treewide: Update clock control API usage 2023-04-05 10:55:46 +02:00
pwm_gecko.c drivers: pwm: Use a common initialization priority 2022-10-03 15:24:38 -04:00
pwm_handlers.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
pwm_imx.c include: add missing kernel.h include 2022-10-11 18:05:17 +02:00
pwm_ite_it8xxx2.c ITE drivers/pwm/it8xxx2: don't gate pwm clock when set cycle 2022-12-01 15:49:37 +01:00
pwm_led_esp32.c dts: esp32s3: add LEDC device 2023-03-31 09:19:56 +02:00
pwm_litex.c drivers: gpio: it8xxx2: add missing chip_chipregs.h/soc_common.h 2022-10-11 18:05:17 +02:00
pwm_mc_esp32.c drivers: pwm: Use a common initialization priority 2022-10-03 15:24:38 -04:00
pwm_mchp_xec.c drivers: all: mchp_xec: remove conditional support for pinctrl 2023-04-24 13:34:22 +02:00
pwm_mchp_xec_bbled.c drivers: all: mchp_xec: remove conditional support for pinctrl 2023-04-24 13:34:22 +02:00
pwm_mcux.c drivers: pwm: pwm_mcux: Round up PWM frequency to prevent overflow 2023-05-09 16:23:35 +09:00
pwm_mcux_ftm.c drivers: pwm: mcux: ftm: fix pwm capture timer overflow count edge cases 2022-12-05 08:06:44 -06:00
pwm_mcux_pwt.c include: add missing irq.h include 2022-10-11 18:05:17 +02:00
pwm_mcux_sctimer.c drivers: all: mcux: remove conditional support for pinctrl 2023-04-24 13:34:22 +02:00
pwm_mcux_tpm.c drivers: pwm: Use a common initialization priority 2022-10-03 15:24:38 -04:00
pwm_npcx.c sys: util: migrate all files to DIV_ROUND_UP 2023-04-11 12:00:37 +02:00
pwm_nrf5_sw.c drivers: pwm: Use a common initialization priority 2022-10-03 15:24:38 -04:00
pwm_nrfx.c drivers: pwm: Align SHIM to renamed fields in driver instance struct 2023-05-05 11:47:53 +02:00
pwm_pca9685.c sys: util: migrate all files to DIV_ROUND_UP 2023-04-11 12:00:37 +02:00
pwm_rcar.c treewide: Update clock control API usage 2023-04-05 10:55:46 +02:00
pwm_rpi_pico.c drivers: pwm: rpi_pico: fix setting of cycle count per period 2023-01-02 13:03:46 +01:00
pwm_rv32m1_tpm.c drivers: all: rv32m1: remove conditional support for pinctrl 2023-04-24 13:34:22 +02:00
pwm_sam.c treewide: Update clock control API usage 2023-04-05 10:55:46 +02:00
pwm_sam0_tcc.c drivers: pwm: Use a common initialization priority 2022-10-03 15:24:38 -04:00
pwm_shell.c shell: fix MISRA 5.7 violations on struct shell 2023-04-14 12:21:08 +02:00
pwm_sifive.c include: add missing arch/cpu.h include 2022-10-11 18:05:17 +02:00
pwm_stm32.c drivers: pwm: stm32: Connect IRQ for input capture by 'cc' name 2023-04-28 20:38:02 +02:00
pwm_test.c device: remove redundant init functions 2023-04-19 10:00:25 +02:00
pwm_xlnx_axi_timer.c device: remove redundant init functions 2023-04-19 10:00:25 +02:00