micropython/ports/nrf/modules/machine
robert-hh 898407defb ports: Make PWM duty_u16 have an upper value of 65535 across all ports.
The following ports used 65536 as the upper value (100% duty cycle) and are
changed in this commit to use 65535: esp8266, mimxrt, nrf, samd.

Tested that output is high at `duty_u16(65535)` and low at `duty_u16(0)`.
Also verified that at `duty_u16(32768)` the high and low pulse have the
same length.

Partially reverts #10850, commits 9c7ad68165
and 2ac643c15b.

Signed-off-by: robert-hh <robert@hammelrath.com>
2024-11-18 16:05:56 +11:00
..
adc.c nrf/modules/machine: Enable code formatting. 2024-03-26 12:49:09 +11:00
adc.h nrf/modules/machine: Enable code formatting. 2024-03-26 12:49:09 +11:00
i2c.c nrf/modules/machine: Enable code formatting. 2024-03-26 12:49:09 +11:00
i2c.h extmod/modmachine: Consolidate mem, i2c and spi headers to modmachine.h. 2023-10-26 17:40:22 +11:00
modmachine.c nrf/modules/machine: Enable code formatting. 2024-03-26 12:49:09 +11:00
modmachine.h extmod/modmachine: Provide common bindings for 6 bare-metal functions. 2023-11-30 16:11:11 +11:00
pin.c nrf/modules/machine/pin: Disable IRQ with pin.irq(handler=None). 2024-07-26 11:32:49 +10:00
pin.h nrf/modules/machine: Enable code formatting. 2024-03-26 12:49:09 +11:00
pwm.c ports: Make PWM duty_u16 have an upper value of 65535 across all ports. 2024-11-18 16:05:56 +11:00
pwm.h extmod/machine_pwm: Remove header file and move decls to .c file. 2023-10-20 16:24:46 +11:00
rtcounter.c ports: Include py/mphal.h instead of mphalport.h. 2024-10-09 14:39:34 +11:00
rtcounter.h nrf: Replace custom-HAL with nrfx-HAL 2018-07-18 17:12:26 +10:00
soft_pwm.c nrf/modules/machine/soft_pwm: Ensure duty_width is always valid. 2024-07-26 11:14:19 +10:00
spi.c nrf/modules/machine: Enable code formatting. 2024-03-26 12:49:09 +11:00
spi.h nrf/modules/machine: Enable code formatting. 2024-03-26 12:49:09 +11:00
temp.c nrf/modules/machine: Enable code formatting. 2024-03-26 12:49:09 +11:00
temp.h nrf: Add new port to Nordic nRF5x MCUs. 2018-07-18 17:12:25 +10:00
timer.c nrf/modules/machine: Enable code formatting. 2024-03-26 12:49:09 +11:00
timer.h extmod/modmachine: Clean up decls of machine types to use common ones. 2023-10-26 16:20:53 +11:00
uart.c nrf/modules/machine/uart: Implement Python UART IRQ for nrf52840 boards. 2024-08-29 16:27:43 +10:00
uart.h extmod/machine_uart: Factor ports' UART Python bindings to common code. 2023-10-26 10:46:42 +11:00