mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 05:23:40 +00:00
2bee29959b
Fixes #4663 "in reverse" by making SPI a pointer everywhere, as discussed in the comments. Signed-off-by: deadprogram <ron@hybridgroup.com>
16 lines
181 B
Go
16 lines
181 B
Go
//go:build k210 && maixbit
|
|
|
|
package machine
|
|
|
|
import "device/kendryte"
|
|
|
|
// SPI on the MAix Bit.
|
|
var (
|
|
SPI0 = &SPI{
|
|
Bus: kendryte.SPI0,
|
|
}
|
|
SPI1 = &SPI{
|
|
Bus: kendryte.SPI1,
|
|
}
|
|
)
|