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
Kconfig.esp32
Kconfig.gd32
Kconfig.gecko
Kconfig.imx
Kconfig.it8xxx2
Kconfig.litex
Kconfig.mcux
Kconfig.mcux_ftm
Kconfig.mcux_pwt
Kconfig.mcux_sctimer drivers: all: mcux: remove conditional support for pinctrl 2023-04-24 13:34:22 +02:00
Kconfig.mcux_tpm
Kconfig.npcx
Kconfig.nrf5_sw
Kconfig.nrfx
Kconfig.pca9685
Kconfig.rcar
Kconfig.rpi_pico
Kconfig.rv32m1_tpm drivers: all: rv32m1: remove conditional support for pinctrl 2023-04-24 13:34:22 +02:00
Kconfig.sam
Kconfig.sam0
Kconfig.sifive
Kconfig.stm32
Kconfig.test
Kconfig.xec drivers: all: mchp_xec: remove conditional support for pinctrl 2023-04-24 13:34:22 +02:00
Kconfig.xlnx
pwm_b91.c
pwm_capture.c
pwm_gd32.c treewide: Update clock control API usage 2023-04-05 10:55:46 +02:00
pwm_gecko.c
pwm_handlers.c
pwm_imx.c
pwm_ite_it8xxx2.c
pwm_led_esp32.c dts: esp32s3: add LEDC device 2023-03-31 09:19:56 +02:00
pwm_litex.c
pwm_mc_esp32.c
pwm_mchp_xec_bbled.c drivers: all: mchp_xec: remove conditional support for pinctrl 2023-04-24 13:34:22 +02:00
pwm_mchp_xec.c drivers: all: mchp_xec: remove conditional support for pinctrl 2023-04-24 13:34:22 +02:00
pwm_mcux_ftm.c
pwm_mcux_pwt.c
pwm_mcux_sctimer.c drivers: all: mcux: remove conditional support for pinctrl 2023-04-24 13:34:22 +02:00
pwm_mcux_tpm.c
pwm_mcux.c drivers: pwm: pwm_mcux: Round up PWM frequency to prevent overflow 2023-05-09 16:23:35 +09: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
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
pwm_rv32m1_tpm.c drivers: all: rv32m1: remove conditional support for pinctrl 2023-04-24 13:34:22 +02:00
pwm_sam0_tcc.c
pwm_sam.c treewide: Update clock control API usage 2023-04-05 10:55:46 +02:00
pwm_shell.c shell: fix MISRA 5.7 violations on struct shell 2023-04-14 12:21:08 +02:00
pwm_sifive.c
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