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

boards/common/arduino-zero: Add Arudino SPI mapping #20884

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

maribu
Copy link
Member

@maribu maribu commented Oct 1, 2024

Contribution description

The Arduino Zero based boards already provided the feature arduino_spi, but were missing the corresponding mapping. This fixes the issue by adding the SPI bus numbers for the ISP SPI bus and the D11D12D13 SPI bus.

(And in order to actually add the D11D12D13 SPI bus, the periph_conf.h was extended to provide an SPI configuration for it.)

Testing procedure

Add an Arduino Ethernet Shield (the classic one with the W5100 chip) on top of an Arduino Zero board (either original or one of the compatible clones) and run:

USEMODULE=shield_w5100 make BOARD=wemos-zero -C examples/gnrc_networking flash term

This will fail to compile on master (due to the missing SPI defines), but succeed with this PR.

Sadly, this will only test the SPI bus already present in the periph_conf.h, not the one added.

Issues/PRs references

None

The Arduino Zero based boards already provided the feature
`arduino_spi`, but were missing the corresponding mapping. This fixes
the issue by adding the SPI bus numbers for the ISP SPI bus and the
D11D12D13 SPI bus.

(And in order to actually add the D11D12D13 SPI bus, the `periph_conf.h`
was extended to provide an SPI configuration for it.)
@maribu maribu added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Type: new feature The issue requests / The PR implemements a new feature for RIOT CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Oct 1, 2024
@github-actions github-actions bot added the Area: boards Area: Board ports label Oct 1, 2024
@riot-ci
Copy link

riot-ci commented Oct 1, 2024

Murdock results

✔️ PASSED

cbf0664 boards/common/arduino-zero: Add Arudino SPI mapping

Success Failures Total Runtime
10196 0 10197 14m:20s

Artifacts

@benpicco benpicco added this pull request to the merge queue Oct 1, 2024
Merged via the queue into RIOT-OS:master with commit 884e21a Oct 1, 2024
29 checks passed
@maribu maribu deleted the boards/common/arduino-zero branch October 10, 2024 08:25
@benpicco benpicco added this to the Release 2024.10 milestone Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: boards Area: Board ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Type: new feature The issue requests / The PR implemements a new feature for RIOT
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants