zephyr/drivers
Henrik Brix Andersen b4912ea997 drivers: pwm: mcux: ftm: fix pwm capture timer overflow count edge cases
Depending on the timing of the edges of the signal to be captured, a timer
overflow interrupt flag may appear in the same ISR as a channel event (1st
or 2nd edge capture complete) flag. Change the timer overflow math to
compensate the timer overflow count based on whether the channel event
happened before or after the overflow flag occured.

For continuous PWM period captures, only the very first edge of the first
period requires an interrupt to be captured. Subsequent "first edges" are
the same edges as the second edge of the previous period. Depending on the
timing of the captured signal, enabling the 1st edge interrupt in this case
can cause the overflow count for subsequent first edges to be captured at
the wrong point in time.

Fixes: #52452

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2022-12-05 08:06:44 -06:00
..
adc crc: Make the build of crc function dependent on a Kconfig 2022-11-23 13:30:00 +01:00
audio include: add missing zephyr/irq.h include 2022-10-17 22:57:39 +09:00
bbram include: fix includes for IT8xxx2 SoC 2022-10-12 16:10:05 -04:00
bluetooth Bluetooth: Use Zephyr standard log system instead of bluetooth/common/log 2022-11-25 17:08:36 +01:00
cache cache: aspeed: Rework driver 2022-12-01 13:40:56 -05:00
can cache: Fix libraries and drivers 2022-12-01 13:40:56 -05:00
clock_control drivers: clock_control: stm32h7: add PLL2 support 2022-11-29 11:54:52 +01:00
console crc: Make the build of crc function dependent on a Kconfig 2022-11-23 13:30:00 +01:00
coredump
counter drivers: counter: support NXP S32 System Timer Module 2022-11-30 11:29:39 +01:00
crypto intel: ace15: Enabling sha driver by default 2022-10-31 12:45:33 -07:00
dac include: add missing zephyr/irq.h include 2022-10-17 22:57:39 +09:00
dai drivers: dmic: add dependency for runtime pm 2022-11-30 17:46:17 -05:00
debug
disk drivers: flashdisk: check partition constraints 2022-11-14 16:37:04 +01:00
display drivers: display: st7735r: Add rgb-is-inverted property 2022-12-02 11:32:25 +01:00
dma drivers: dma: gpdma: reduce logging verbosity 2022-11-24 15:22:30 +01:00
ec_host_cmd_periph ec_host_cmd: add eSPI peripheral for the host commands 2022-11-18 10:11:40 +01:00
edac edac: ibecc: Correct indication of -ENODATA 2022-11-19 14:18:40 +09:00
eeprom drivers: eeprom: add fake EEPROM driver 2022-11-15 09:43:42 -06:00
entropy drivers: entropy: PSA crypto RNG driver default 2022-12-05 14:20:52 +01:00
espi ec_host_cmd: add eSPI peripheral for the host commands 2022-11-18 10:11:40 +01:00
ethernet cache: Fix libraries and drivers 2022-12-01 13:40:56 -05:00
flash drivers: flash: stm32l5_u5: refactor flash_stm32_page_layout() for clarity 2022-11-30 17:30:36 +01:00
fpga drivers: fpga: ice40: add support for the Lattice iCE40 series 2022-11-17 09:17:44 -05:00
fuel_gauge fuel_gauge: Sample sbs gauge driver with tests 2022-11-19 17:56:05 -05:00
gpio driver: gpio: npcx: correct the usage of npcx voltage flags 2022-11-28 09:56:33 +00:00
hwinfo
i2c drivers: i2c_dw: Convert to use dynamic BDF lookup 2022-11-16 11:18:43 +01:00
i2s include: add missing zephyr/kernel.h 2022-10-20 22:52:09 +09:00
i3c i3c: fix ccc setmrl/setmwl helper addr 2022-10-14 12:27:39 -04:00
ieee802154 crc: Make the build of crc function dependent on a Kconfig 2022-11-23 13:30:00 +01:00
interrupt_controller ARC: control shared (common) interrupts via IDU 2022-11-28 17:44:54 +01:00
ipm drivers: ipm: nrfx: align implementation to nrfx 2.10 API 2022-11-08 10:48:38 +01:00
kscan include: add missing zephyr/irq.h include 2022-10-17 22:57:39 +09:00
led drivers: led: Microchip XEC LED driver using BBLED controller 2022-12-02 11:31:50 +01:00
led_strip
lora include: add missing zephyr/irq.h include 2022-10-17 22:57:39 +09:00
mbox drivers: mbox: nrfx: align implementation to nrfx 2.10 API 2022-11-08 10:48:38 +01:00
mdio include: add missing kernel.h include 2022-10-11 18:05:17 +02:00
memc include: add missing zephyr/kernel.h 2022-10-20 22:52:09 +09:00
mipi_dsi drivers: mipi_dsi: mcux: add missing soc.h 2022-10-24 12:44:57 +02:00
misc drivers: misc: Add an Ethos-U NPU driver 2022-11-15 14:47:43 +01:00
mm drivers/mm: Only remap unused RAM on Kconfig on Intel ADSP MTL 2022-11-29 18:03:09 -05:00
modem modem: hl7800: Fix re-init after firmware update 2022-11-15 12:18:26 +00:00
net crc: Make the build of crc function dependent on a Kconfig 2022-11-23 13:30:00 +01:00
neural_net include: add missing zephyr/irq.h include 2022-10-17 22:57:39 +09:00
pcie pcie: shell: Use pcie_scan() for scanning for devices 2022-11-24 15:23:28 +01:00
peci driver: peci: mec: enable peci in ec subsystem register 2022-11-10 22:39:43 -05:00
pinctrl drivers: pinctrl: Microchip XEC PINCTRL add invert pin 2022-11-30 11:29:22 +01:00
pinmux include: add missing errno.h include 2022-10-11 18:05:17 +02:00
pm_cpu_ops arm64: implement arch_system_halt 2022-11-23 11:37:08 +01:00
power_domain power_domain: intel_adsp: code update 2022-11-30 17:46:17 -05:00
ps2 include: add missing zephyr/irq.h include 2022-10-17 22:57:39 +09:00
ptp_clock
pwm drivers: pwm: mcux: ftm: fix pwm capture timer overflow count edge cases 2022-12-05 08:06:44 -06:00
regulator drivers: regulator: support for regulator mode APIs in regulator shell 2022-12-04 19:56:34 +01:00
reset drivers: reset: add Aspeed AST10x0 reset control 2022-12-05 14:36:16 +01:00
sdhc crc: Make the build of crc function dependent on a Kconfig 2022-11-23 13:30:00 +01:00
sensor drivers/sensor: lsm6dso: Add drdy_pulsed property in DT 2022-11-25 20:03:21 +01:00
serial drivers: serial: uart_xmc4xxx: Fix write to fifo with more than one byte 2022-12-05 11:03:22 +01:00
spi drivers: spi_mcux_lpspi: fix baudrate change when switching devices 2022-11-30 11:28:22 +01:00
syscon include: add missing errno.h include 2022-10-11 18:05:17 +02:00
timer drivers: tiemr: nrf_rtc_timer: Add test function for shifting time 2022-11-17 11:24:23 +01:00
usb drivers: udc: add USBFSOTG UDC driver for Kinetis SoCs 2022-12-02 12:55:18 +01:00
usb_c usb-c: Remove VBUS measurement and control 2022-10-22 18:38:35 -04:00
video include: add missing zephyr/irq.h include 2022-10-17 22:57:39 +09:00
virtualization drivers: ivshmem: Remove unnecessary BDF lookup code 2022-11-19 14:17:16 +09:00
w1 crc: Make the build of crc function dependent on a Kconfig 2022-11-23 13:30:00 +01:00
watchdog drivers: watchdog: npm6001: initial version 2022-11-22 11:05:19 +01:00
wifi driver: wifi: esp32: disable optimization by default 2022-11-30 13:40:10 +01:00
xen include: add missing zephyr/irq.h include 2022-10-17 22:57:39 +09:00
CMakeLists.txt fuel_gauge: Sample sbs gauge driver with tests 2022-11-19 17:56:05 -05:00
Kconfig fuel_gauge: Sample sbs gauge driver with tests 2022-11-19 17:56:05 -05:00