Skip to content

Codex-generated pull request#21

Merged
soburi merged 1 commit into
connectordeffrom
codex/review-last-3-commits
Feb 11, 2026
Merged

Codex-generated pull request#21
soburi merged 1 commit into
connectordeffrom
codex/review-last-3-commits

Conversation

@soburi
Copy link
Copy Markdown
Owner

@soburi soburi commented Feb 11, 2026

Codex generated this pull request, but encountered an unexpected error after generation. This is a placeholder PR message.


Codex Task

Copilot AI review requested due to automatic review settings February 11, 2026 12:54
@soburi soburi merged commit a3b0b59 into connectordef Feb 11, 2026
7 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modifies the Arduino core header’s devicetree connector selection logic, narrowing how ZARD_CONNECTOR is determined.

Changes:

  • Removed conditional ZARD_CONNECTOR fallbacks for several connector node labels (arduino_mkr_header, arduino_nano_header, pico_header, boosterpack_header).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cores/arduino/Arduino.h
Comment on lines 103 to 107
#define ZARD_ARDUINO_HEADER_R3_DIGITAL_MAP_18 D12
#define ZARD_ARDUINO_HEADER_R3_DIGITAL_MAP_19 D13
#define ZARD_ARDUINO_HEADER_R3_DIGITAL_MAP_20 D14
#define ZARD_ARDUINO_HEADER_R3_DIGITAL_MAP_21 D15

#elif DT_NODE_EXISTS(DT_NODELABEL(arduino_mkr_header))
#define ZARD_CONNECTOR arduino_mkr_header
#elif DT_NODE_EXISTS(DT_NODELABEL(arduino_nano_header))
#define ZARD_CONNECTOR arduino_nano_header
#elif DT_NODE_EXISTS(DT_NODELABEL(pico_header))
#define ZARD_CONNECTOR pico_header
#elif DT_NODE_EXISTS(DT_NODELABEL(boosterpack_header))
#define ZARD_CONNECTOR boosterpack_header
#endif
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fallback selection of ZARD_CONNECTOR for arduino_mkr_header / arduino_nano_header / pico_header / boosterpack_header was removed. For targets where DT_NODELABEL(arduino_header) is absent but one of those connector node labels exists (and zephyr_user.digital_pin_gpios is also not set), this will leave ZARD_CONNECTOR undefined and enum digitalPins will not generate D0.. entries. Consider restoring the #elif DT_NODE_EXISTS(...) fallbacks, or adding an explicit #error/diagnostic when neither digital_pin_gpios nor a supported connector node is present to avoid silent build/runtime differences.

Copilot uses AI. Check for mistakes.
@soburi soburi deleted the codex/review-last-3-commits branch February 11, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants