zephyr/drivers
Andrzej Głąbek 165c14dc60 drivers: pwm_nrfx: Fix handling of zero length periods
When the driver was called to set the period length for a channel
to 0, it set the COUNTERTOP register in the PWM peripheral to 0,
what resulted in an undefined behavior of the peripheral (and lack
of the STOPPED event sometimes).
The PWM API does not precise how should a zero length period be
handled; some drivers return the -EINVAL error in such case, some
do not. This patch fixes the pwm_nrfx driver so that it does not
change the previously used COUNTERTOP register value when the period
length is set to 0, and because the pulse cycles are always limited
by the driver to period cycles (so 0 in this case), in result the
relevant channel is simply deactivated. This allows users to switch
off a channel by requesting the pulse width to be set to 0 without
providing a non-zero period in such call.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2021-10-08 13:06:40 +02:00
..
adc drivers: adc: stm32 adc disable causing endless loop 2021-09-28 06:12:47 -04:00
audio drivers: audio: dmic: Add support for nRF PDM peripherals 2021-09-03 09:34:06 -04:00
bbram drivers: bbram: Add it8xxx2 BBRAM driver implementation 2021-08-30 11:35:23 -04:00
bluetooth drivers: create BT_DRIVERS Kconfig entry 2021-09-28 12:13:23 +02:00
cache cache: Introduce external cache controller system support 2021-05-08 07:00:33 +02:00
can drivers: Update drivers to use new multicast monitor API 2021-09-28 20:04:49 -04:00
clock_control drivers/clock_control: stm32u5: Fix VCO setting 2021-10-07 15:38:40 -04:00
console console: uart: Don't re-define functions as macros 2021-10-02 14:34:14 -04:00
counter esp32s2: drivers: counter: add support 2021-09-06 10:02:57 -04:00
crypto drivers/crypto: stm32: add support for socs with AES IP 2021-07-23 16:25:27 -04:00
dac drivers: Add Atmel SAM DAC (DACC) driver 2021-08-26 16:46:16 -04:00
debug tracing: fix conflict with RTT locking 2021-05-25 07:36:38 -05:00
disk drivers: disk: Fix USDHC driver to return 0 on success 2021-09-17 08:12:22 -04:00
display drivers: display: st7789v: remove incorrect error check 2021-09-27 08:24:21 -04:00
dma drivers: dma: dma_sam0: change sam0 DMA to higher priority init. 2021-09-19 19:31:25 -04:00
ec_host_cmd_periph drivers: ec_host_cmd_periph: remove usage of device_pm_control_nop 2021-04-28 10:55:22 -04:00
edac drivers: edac: build as static library 2021-08-17 06:06:03 -04:00
eeprom eeprom: at2x: convert to _dt_spec 2021-08-09 19:50:53 -04:00
entropy esp32s2: drivers: entropy: add support 2021-10-01 10:51:37 -04:00
espi emul: espi: Add ACPI Shared Memory functions 2021-08-26 13:14:05 -04:00
ethernet drivers: Update drivers to use new multicast monitor API 2021-09-28 20:04:49 -04:00
flash Bluetooth: Controller: Propagate ticks_drift in the ticker callback 2021-09-17 14:30:07 +02:00
fpga drivers: fpga controller: add shell support 2021-09-03 09:54:00 -04:00
gpio boards: riscv: esp32c3: added button support 2021-10-05 19:24:38 -04:00
hwinfo drivers: hwinfo: add reset cause support for iMX RT series 2021-09-29 14:44:21 -04:00
i2c ITE: drivers/i2c: returning negative values for error 2021-10-04 12:53:50 -04:00
i2s drivers: i2s_nrfx: Fix a few minor fixes 2021-09-29 14:46:29 -04:00
ieee802154 drivers: nrf5: fixes for the CSL Receiver 2021-10-01 11:37:38 +02:00
interrupt_controller ITE: soc: add cpu idle task 2021-10-08 13:01:06 +02:00
ipm drivers: ipm: set IPM_STM32_HSEM default from the device tree 2021-08-30 09:33:32 -04:00
kscan ITE drivers/kscan: add keyboard scan driver for it8xxx2_evb 2021-09-28 19:53:15 -04:00
led drivers: led: build as static library 2021-08-17 06:06:03 -04:00
led_strip dts: fix 'colorway' compatibles 2021-08-17 17:51:57 -04:00
lora drivers: lora: fix RtcGetCalendarTime() 2021-10-05 19:24:58 -04:00
mdio drivers: mdio: add shell 2021-08-27 11:43:48 -04:00
memc drivers: memc: build as static library 2021-08-17 06:06:03 -04:00
misc drv: display: Initial FT800 display driver 2021-03-19 19:05:53 +01:00
modem drivers: gsm_ppp: introduce modem on/off callbacks 2021-10-04 20:46:04 -04:00
net drivers: net: adding NET_DRIVERS menuconfig 2021-09-28 12:13:23 +02:00
neural_net drivers: neural_net: remove usage of device_pm_control_nop 2021-04-28 12:25:24 -04:00
pcie pcie: shell: Print more MSI-X information 2021-09-03 10:09:05 -04:00
peci drivers: peci: remove usage of device_pm_control_nop 2021-04-28 12:25:24 -04:00
pinmux drivers: pinmux: stm32: remove unused init priority 2021-10-07 15:38:53 -04:00
pm_cpu_ops drivers: pm_cpu_ops: build as static library 2021-08-17 06:06:03 -04:00
ps2 drivers: PS/2: npcx: Replace device_get_binding with DEVICE_DT_GET 2021-07-02 15:41:28 -04:00
ptp_clock drivers: ptp_clock: build as static library 2021-08-17 06:06:03 -04:00
pwm drivers: pwm_nrfx: Fix handling of zero length periods 2021-10-08 13:06:40 +02:00
regulator drivers: regulator: Fix k_work_schedule return code handling 2021-09-24 06:36:50 -04:00
sensor drivers/sensor: lsm6dso: Prevent device entering I3C 2021-10-06 22:22:09 -04:00
serial drivers: serial: stm32: renable IT RXNE as part of graceful disable 2021-10-05 19:19:16 -04:00
spi spi: convert CS usage to gpio_dt_spec 2021-10-05 19:24:18 -04:00
syscon drivers: syscon: Add support for multiple regions 2021-09-22 10:32:11 -04:00
timer drivers/timer: stm32 lptim: Update for u5 series support 2021-10-07 15:38:40 -04:00
usb drivers/usb: stm32: Deprecate 'enable-pin-remap' 2021-10-07 15:38:53 -04:00
video drivers: video: ov2640: add driver for ov2640 image sensor 2021-08-17 09:18:38 -04:00
virtualization drivers/ivshmem: MSI API change was not applied in this drivers 2021-09-15 13:42:22 +03:00
watchdog drivers: watchdog: fix missing stm32 LOG_LEVEL macro 2021-09-10 10:57:57 -04:00
wifi drivers: wifi: esp_at: changes to scanning 2021-10-07 10:55:37 +02:00
CMakeLists.txt drivers: net: adding NET_DRIVERS menuconfig 2021-09-28 12:13:23 +02:00
Kconfig drivers: fpga controller: add fpga api 2021-09-03 09:54:00 -04:00