micropython/ports/nrf/modules/machine
Alessandro Gatti 11861e96a9 nrf/modules/machine/pin: Reduce footprint of pin structures.
This commit performs a few minor changes to the structures used to store
board pin information, in order to reduce the impact on the .rodata
section of the firmware of instances of those structures.

The "pin_obj_t" structure, holding pin information, had an unused
word-sized field ("pull") that isn't used by any of the board
definitions, yet it takes up space in each pin structure being compiled
in the final firmware image.

Images for all available boards were built successfully with this
change, so there should be no unwanted issues arising from shrinking
that structure.

Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
2026-01-04 11:48:11 +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: Use common implementation of machine disable/enable IRQ. 2025-05-21 13:30:40 +10: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/pin: Reduce footprint of pin structures. 2026-01-04 11:48:11 +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/spi: Print SPI baudrate, polarity and phase. 2025-09-26 13:44:43 +10: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: Fix UART write on parts that can't write more than 255 bytes. 2025-05-21 13:14:26 +10:00
uart.h nrf: Only process interrupt chars on UARTs used for REPL. 2025-05-21 13:10:01 +10:00