mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 22:13:39 +00:00
fix: ensure use of pointers for SPI interface on atsam21/atsam51 and other machines/boards that were missing implementation. (#4798)
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -334,8 +334,8 @@ type SPI struct {
|
||||
|
||||
var (
|
||||
// SPI0 and SPI1 are reserved for use by the caching system etc.
|
||||
SPI2 = SPI{esp.SPI2}
|
||||
SPI3 = SPI{esp.SPI3}
|
||||
SPI2 = &SPI{esp.SPI2}
|
||||
SPI3 = &SPI{esp.SPI3}
|
||||
)
|
||||
|
||||
// SPIConfig configures a SPI peripheral on the ESP32. Make sure to set at least
|
||||
|
||||
Reference in New Issue
Block a user