Files
tinygo/src/machine/board_hifive1b_baremetal.go
T
Ayke van Laethem 90b42799a2 machine: make machine.I2C0 and similar objects pointers
This makes it possible to assign I2C objects (machine.I2C0,
machine.I2C1, etc.) without needing to take a pointer.

This is important especially in the future when I2C may be driven using
DMA and the machine.I2C type needs to store some state.
2021-03-29 02:02:04 +02:00

13 lines
135 B
Go

// +build fe310,hifive1b
package machine
import "device/sifive"
// SPI on the HiFive1.
var (
SPI1 = SPI{
Bus: sifive.QSPI1,
}
)