Skip to content

free up PA00 and PA01 on BHB #4735

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

Merged
merged 1 commit into from
May 10, 2021
Merged

Conversation

bleything
Copy link

@bleything bleything commented May 9, 2021

BHB's definition assigns PA00 and PA01 to MICROPYTHON_PORT_A:

#define MICROPY_PORT_A (PORT_PA00 | PORT_PA01)

If you try to use one of those ports from user code, for example via the neopixel library, you'll get an error saying the pin is in use. However, in the current production design those pins are not connected and so should be made available for hax. This change frees them up for use.

I tested this by checking out the 6.2.0 tag, applying the change in this PR, recompiling, and installing on my BHB. After applying this fix I'm able to use PA00 as expected and the rest of the features of the default firmware seem to work as expected. I did not test against current head. Let me know if you need more testing.

/cc @theacodes for review

Copy link

@theacodes theacodes left a comment

Choose a reason for hiding this comment

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

Looks good, just waiting on CI

@kattni kattni merged commit 054317d into adafruit:main May 10, 2021
@theacodes
Copy link

Thank you @kattni & @bleything! ✨

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