Skip to content

SPIConfig design concerns #5094

@bmuessig

Description

@bmuessig

I have just began using TinyGo for RP2040 after previously always using the Pico SDK.
Since the concerns are with the abstraction, they don't only concern the RP2040 though.

There are a few things I found strange configuring SPI:

  • SPI config uses pin defaults when pin is zero
    Doesn't this clash when setting one of the SPI pins to pin 0, if the default is not zero?

  • SPI config does not support omitting MOSI or MISO
    Especially on designs where all pins are used and one channel (e.g. receive on a display) is not used, this causes major issues. Is there an official way to handle this?

I hope these could be addressed, since I really like the idea of moving future firmware projects from C to Go.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions