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/nucleo-wl55jc: Fix Arduino SPI bus #20085

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

maribu
Copy link
Member

@maribu maribu commented Nov 14, 2023

Contribution description

The macro ARDUINO_SPI_D11D12D13 is used to refer to the SPI bus on the pins D11/D12/D13 on Arduino UNO compatible boards. For all Nucleo64 boards this is SPI_DEV(0), but for this board SPI_DEV(0) is internally connected to the radio. Instead SPI_DEV(1) is connected to the correct pins. This provides the macro explicitly in periph_conf.h, which takes preference over the fallback in boards/common/nucleo64 when provided.

Testing procedure

Check the lines above the macro in periph_conf.h and confirm that the GPIO pins match the Arduino pin names.

Or run the peripheral self test using the shield. With this, it hopefully passes.

Issues/PRs references

None

The macro `ARDUINO_SPI_D11D12D13` is used to refer to the SPI bus
on the pins D11/D12/D13 on Arduino UNO compatible boards. For all
Nucleo64 boards this is `SPI_DEV(0)`, but for this board `SPI_DEV(0)`
is internally connected to the radio. Instead `SPI_DEV(1)` is connected
to the correct pins. This provides the macro explicitly in
`periph_conf.h`, which takes preference over the fallback in
`boards/common/nucleo64` when provided.
@maribu maribu added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Area: boards Area: Board ports labels Nov 14, 2023
@riot-ci
Copy link

riot-ci commented Nov 14, 2023

Murdock results

✔️ PASSED

c7ded84 boards/nucleo-wl55jc: Fix Arduino SPI bus

Success Failures Total Runtime
525 0 525 03m:05s

Artifacts

@benpicco benpicco added this pull request to the merge queue Nov 14, 2023
Merged via the queue into RIOT-OS:master with commit b16c85c Nov 14, 2023
@maribu maribu deleted the boards/nucleo-wl55jc branch December 5, 2023 08:21
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 Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants