zephyr/drivers/pwm
Marek Metelski d55b0a410d drivers: pwm: stm32: Connect IRQ for input capture by 'cc' name
Some STM32 timers have more than one interrupt available.
When such timer is used it's likely that the first found interrupt
will not be the proper, 'cc' interrupt for input capture.

Existing implementation always connected the first irq, which worked
for timers with single, 'global' interrupt but broke input capture
for advanced timers with more interrupts.

Improve the IRQ connection logic by connecting the 'cc' interrupt
if it exists. Only if not found use the fallback mechanism of taking the
first index

Signed-off-by: Marek Metelski <marek@metelski.dev>
2023-04-28 20:38:02 +02: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 nxp: hal: code update to reflect changes in SDK 2.13 2023-04-20 08:11:19 -05: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 soc: arm: nordic_nrf: replace NRF_DT_CHECK_PIN_ASSIGNMENTS 2023-02-28 08:42:05 -08: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