Skip to content
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

unor4: fix incorrect BSP_CLOCK_CFG_SUBCLOCK_POPULATED defines #169

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

facchinm
Copy link
Member

Fixes #160

Special thanks to @simooon442 for spotting the issue

@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Oct 30, 2023
@maxgerhardt
Copy link
Contributor

And that requires no FSP library recompile? What code in the Arduino core listens to this macro?

@simooon442
Copy link

Not able to find that. But it seems its linked to libfsp.a file

The function is not being called by default since the pins are unused on both Minima and WiFi.
A third party, however, can just call it inside initVariant() to enable the pins
@facchinm
Copy link
Member Author

facchinm commented Nov 2, 2023

@maxgerhardt you are right, I missed some steps... I provided a new patch that doesn't involve changing libfsp, tested to work fine on UNO R4 WiFi (should work on Minima too of course).

The idea is that the function should only be called by 3rd party cores that need the pins (if they don't want to recompile libfsp)

@facchinm facchinm merged commit 42b064f into arduino:main Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

P214 and P215 problem
4 participants