machine/hifive1b: fix compiling in simulation (wasm)

This commit is contained in:
Ayke van Laethem
2019-10-31 11:43:26 +01:00
committed by Ron Evans
parent 46d468b79d
commit 66ed03faa2
2 changed files with 12 additions and 9 deletions
-9
View File
@@ -2,8 +2,6 @@
package machine
import "device/sifive"
const (
P00 Pin = 0
P01 Pin = 1
@@ -38,10 +36,3 @@ const (
P30 Pin = 30
P31 Pin = 31
)
// SPI on the HiFive1.
var (
SPI1 = SPI{
Bus: sifive.QSPI1,
}
)
+12
View File
@@ -0,0 +1,12 @@
// +build fe310,hifive1b
package machine
import "device/sifive"
// SPI on the HiFive1.
var (
SPI1 = SPI{
Bus: sifive.QSPI1,
}
)