Repository navigation
Check board pin assignments against per-chip rules - #6
Open
ShivtejG236 wants to merge 1 commit into
Open
ShivtejG236 wants to merge 1 commit into
ShivtejG236 wants to merge 1 commit into
Conversation
chips/<chip>.json lists which GPIOs exist, which are input-only, which UARTs the GPS may use and which pins can never carry a sensor signal (strapping, flash and PSRAM, USB, the UART0 host link), each with its reason. boards.pin_errors() reports every problem with an assignment and now backs manifest validation; a board manifest can also reserve pins it already uses. Rules are provided for the ESP32 and ESP32-S3. The ESP32-S3 DevKitC-1 manifest reserves its octal PSRAM and RGB LED pins.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
chips/<chip>.json: per-chip pin rules for the ESP32 and ESP32-S3. Each lists the GPIOs that exist, the input-only ones, the UARTs the GPS may use, and the pins that can never carry a sensor signal, with the reason for each.boards.pin_errors(): checks a pin assignment against those rules and returns every problem, not only the first. Manifest validation now uses it.reservedpins. The ESP32-S3 DevKitC-1 reserves its octal PSRAM and RGB LED pins.tools/test_pin_rules.pyruns in CI.Why
Groundwork for letting users change sensor pins: the same function will back the settings page, so an assignment that cannot work is rejected with its reason.
Notes