adafruit / Wippersnapper_Boards

Hardware Description Models for Adafruit IO Wippersnapper Beta.
MIT License
6 stars 49 forks source link

UART Pin Specification Proposal #115

Closed lorennorman closed 10 months ago

lorennorman commented 10 months ago

Making a public mess so we can talk about it

lorennorman commented 10 months ago

@brentru take a look at my diff on this one, total made up pins on the Funhouse but something to talk over

Hardware Pins:

Software Pins:

Both:

Notes:

Questions:

lorennorman commented 10 months ago

Converted to a draft so we aren't tempted to merge

brentru commented 10 months ago

@lorennorman Answering questions

lorennorman commented 10 months ago

@brentru trying to uartPins dedicated property, might look like this...

hardware:

      "uartPins": {
         "tx": "H1",
         "rx": "H2",
         "hardware": true
       }

software:

      "uartPins": {
         "tx": "S1",
         "rx": "S2"
      }

Hardware would verify that the named pins do not exist in the digital collection, software would verify that they do exist.

Much simpler, I like this much more so far. Thoughts?

brentru commented 10 months ago

@lorennorman After discussing this over Slack, the original schema makes the most sense. This allows the user flexibility in selecting a pin either to be used as GPIO or as in the UART bus' construction.

I think this PR is ready to merge. After the merge, we may want to add another PR for adding the UART pins to every board within this repository.

brentru commented 10 months ago

@lorennorman you marked this ready for review, do you want me to fully review it?

lorennorman commented 10 months ago

Nope, that’s just what it says when you take a PR out of “draft” status, sorry for the noise.

On Wed, Aug 30, 2023 at 1:12 PM Brent Rubell @.***> wrote:

@lorennorman https://github.com/lorennorman you marked this ready for review, do you want me to fully review it?

— Reply to this email directly, view it on GitHub https://github.com/adafruit/Wippersnapper_Boards/pull/115#issuecomment-1699555694, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAEKII4ADQPAMJ2OSCF4BTXX5X6RANCNFSM6AAAAAA32EMWLA . You are receiving this because you were mentioned.Message ID: @.***>