Skip to content

fix: ensure use of pointers for SPI interface on missing machines #4798

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
Mar 11, 2025

Conversation

deadprogram
Copy link
Member

This PR is to ensure use of pointers for SPI interface on atsam21/atsam51 and other machines that were missing the correct implementation.

Recent build errors in drivers repo and other indicated that PR #4756 was not actually complete. This PR is to address that.

…other machines/boards that were missing implementation.

Signed-off-by: deadprogram <ron@hybridgroup.com>
@deadprogram deadprogram changed the title fix: ensure use of pointers for SPI interface on atsam21/atsam51 machines Mar 11, 2025
Copy link

Size difference with the dev branch:

Binary size difference
not the same command!
    tinygo build -size short -o ./build/test.hex -target=feather-rp2040 ./examples/adafruit4650
    go: downloading tinygo.org/x/tinyfont v0.3.0
drivers/sizes-pr.txt has more commands than drivers/sizes-dev.txt
    tinygo build -size short -o ./build/test.hex -target=pybadge ./examples/amg88xx
 flash                          ram
 before   after   diff          before   after   diff
  16688   16688      0   0.00%    4180    4180      0   0.00% tinygo build -size short -o ./build/test.hex -target=feather-rp2040 ./examples/adafruit4650
  61472   61472      0   0.00%    6188    6188      0   0.00% tinygo build -size short -o ./build/test.hex -target=itsybitsy-m0 ./examples/adt7410/main.go
   9604    9604      0   0.00%    4748    4748      0   0.00% tinygo build -size short -o ./build/test.hex -target=itsybitsy-m0 ./examples/adxl345/main.go
  87764   87764      0   0.00%   15116   15116      0   0.00%
Copy link
Contributor

@ysoldak ysoldak left a comment

Choose a reason for hiding this comment

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

LGTM

@soypat soypat merged commit f76e8d2 into dev Mar 11, 2025
24 checks passed
@soypat soypat deleted the correct-use-spi-pointer-atsam branch March 11, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants