-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
boards/arm/rp2040/common: Add weak_function to SPI common logic #15894
base: master
Are you sure you want to change the base?
Conversation
420cfb9
to
93e0db1
Compare
[Experimental Bot, please feedback here] No, this PR does not fully meet the NuttX requirements. While it provides a good starting point, it lacks crucial details. Missing/Insufficient Information:
Recommendations:
By addressing these points, the PR will better meet the NuttX requirements and be more likely to be accepted. |
Please fill in the Commit Description (copy from the PR Summary). And remember to sign-off with |
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.
please add a commit message
93e0db1
to
c094891
Compare
Okay! Signed and added a message |
I realized i copied the entire PR message and should have been only summery i believe. Hope this isnt a big issue. |
Sorry could you run |
7fa681b
to
70748c1
Compare
Signed |
Hmmm I don't see the "Signed-off-by". Could you do |
@lupyuen By just running commit -s i get "nothing to commit, working tree clean". I ran git commit --amend --no-edit -S which should in theory add a sign? |
Summary Board logic change. This PR adds weak_function attributes to the RP2040 common SPI board logic. This allows board developers to override and extend the SPI board logic. Signed-off-by: Kevin Witteveen (MartiniMarter) <[email protected]>
ahhh i see signed off now! However now i have issues pushing it because it does not let me enter my password anymore. Ill get back to this soon |
70748c1
to
b44d759
Compare
oh okay do the same thing twice and it works. |
Looks great, thanks! :-) |
Summary
Board logic change.
This PR adds weak_function attributes to the RP2040 common SPI board logic.
This allows board developers to override and extend the SPI board logic.
Impact
This allows board developers to add custom SPI logic such as adding additional chip select pins.
Adding new SPI devices such as displays or custom SPI devices like external boards is now possible.
External custom boards will have the biggest impact, as these are typically not pushed.
Testing
This has been tested by building the code on linux with raspberrypi-pico:nsh config.
I also tested it on a custom board and it works.
However, my knowledge is not very big about compiler compatibility when weak_function is used.
Please let me know if there are issues.