Skip to content

feat: import postvariant.h if it exists#207

Open
soburi wants to merge 1 commit into
zephyrproject-rtos:nextfrom
soburi:postvariant
Open

feat: import postvariant.h if it exists#207
soburi wants to merge 1 commit into
zephyrproject-rtos:nextfrom
soburi:postvariant

Conversation

@soburi

@soburi soburi commented Jul 5, 2026

Copy link
Copy Markdown
Member

This commit adds a conditional include for "postvariant.h" in the Arduino.h header file. If it exists, it will be included after the main Arduino definitions. This allows for additional variant-specific configurations or overrides to be applied without modifying the core Arduino.h file directly.

Copilot AI review requested due to automatic review settings July 5, 2026 06:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds an optional, variant-provided header hook to the core Arduino.h so variants can apply extra configuration/overrides without patching core headers.

Changes:

  • Conditionally includes postvariant.h at the end of the C++ portion of cores/arduino/Arduino.h when available.

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

Comment thread cores/arduino/Arduino.h
This commit adds a conditional include for "postvariant.h" in the
Arduino.h header file. If it exists, it will be included after the main
Arduino definitions. This allows for additional variant-specific
configurations or overrides to be applied without modifying the core
Arduino.h file directly.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
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.

3 participants