mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 10:43:29 +00:00
machine/hifive1b: fix compiling in simulation (wasm)
This commit is contained in:
committed by
Ron Evans
parent
46d468b79d
commit
66ed03faa2
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
package machine
|
package machine
|
||||||
|
|
||||||
import "device/sifive"
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
P00 Pin = 0
|
P00 Pin = 0
|
||||||
P01 Pin = 1
|
P01 Pin = 1
|
||||||
@@ -38,10 +36,3 @@ const (
|
|||||||
P30 Pin = 30
|
P30 Pin = 30
|
||||||
P31 Pin = 31
|
P31 Pin = 31
|
||||||
)
|
)
|
||||||
|
|
||||||
// SPI on the HiFive1.
|
|
||||||
var (
|
|
||||||
SPI1 = SPI{
|
|
||||||
Bus: sifive.QSPI1,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
// +build fe310,hifive1b
|
||||||
|
|
||||||
|
package machine
|
||||||
|
|
||||||
|
import "device/sifive"
|
||||||
|
|
||||||
|
// SPI on the HiFive1.
|
||||||
|
var (
|
||||||
|
SPI1 = SPI{
|
||||||
|
Bus: sifive.QSPI1,
|
||||||
|
}
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user