Skip to content

Conversation

soburi
Copy link
Member

@soburi soburi commented Aug 23, 2025

  • The structure has been revised and unnecessary fields have been removed.
  • Interrupt masks are now directly modified by changing the pin_mask
    parameter in struct gpio_callback.
  • Renamed non-Arduino-derived setInterruptHandler and handleGpioCallback
    functions to Zephyr-like names.

@soburi soburi changed the title zephyrCommon: Improved interrupt handling [DNM] zephyrCommon: Improved interrupt handling Aug 23, 2025
@soburi soburi force-pushed the improve_interrupt branch from 3316f82 to 28b1df9 Compare August 30, 2025 03:19
@soburi soburi force-pushed the improve_interrupt branch 4 times, most recently from ffc4797 to 5e8e11a Compare August 31, 2025 00:26
Zephyr's ba48d83b changes make it easy to configure pin numbering
at compile, so we'll change the pin numbers to be based on
the GPIO pin numbers.

This is same as the traditional Arduino, using the GPIO numbers as
pin numbers. Pin names written on the board, such as D1 and D2,
are aliases for these pin numbers.

When using multiple GPIO ports, pin numbers are numbered consecutively
from the beginning. For example, if you have two 16-port GPIOs,
16 refers to the first pin (idx=0) of the second port.

Signed-off-by: TOKITA Hiroshi <[email protected]>
Now that GPIO can be specified generically,
we will discontinue the definition generation of LED_BUILTIN from builtin_led_gpios.
Delete this definition where automatic generation from led0 is not an issue,
and define it in variant.h in all other cases.

Signed-off-by: TOKITA Hiroshi <[email protected]>
- The structure has been revised and unnecessary fields have been removed.
- Interrupt masks are now directly modified by changing the pin_mask
  parameter in `struct gpio_callback`.
- Renamed non-Arduino-derived `setInterruptHandler` and `handleGpioCallback`
  functions to Zephyr-like names.

Signed-off-by: TOKITA Hiroshi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant