-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add DAC* and RTL_* pin assignments to Wio Terminal board. #4679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Would you mind fixing |
I didn't touch the |
I don't think it's intentional. It's just hard to track in the datasheet. Boards that need more space can use the IGNORE_ macros to turn them off. Ya, I think the space is worth it. Thanks! |
Got it. |
What do you think of putting additional names for the 40-pin header ? |
The pin names of GP* come from Raspberry Pi, and I have no idea of their use cases. Defining I2S_* pins will be convenient when using audiobusio module. However, I also wonder if it may not be necessary to define aliases of those pins used as a group (such as RTL_* and I2S_*), as far as they are accessible in other ways. Which option do you think is suitable?
In addition, thanks to tannewt suggestion, I will add IGNORE_ macros on Wio Terminal for the following pins: |
I think it's fine to have more than one name for a pin. It can allow code to work across boards when the names are standardized.
👍 The CI will be happier after it runs again. main was broken for a bit. |
I've added 4 I2S_* pin assignments in board module, and removed 8 pins above from microcontroller.pin for Wio Terminal. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good. Thank you!
I fixed the merge conflict, which appeared to be just an indentation difference between two different additions of pins PB24-PB29. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
This PR defines DAC* and RTL_* pins in board module of Wio Terminal. Addition of RTL_MOSI (=PB24) is essential, because PB24 is missing in microcontroller.pin. With this PR, the following code works to communicate with RTL8720.
The crude code above sends an eRPC request to get the RTL8720 firmware version.