Low-level IO driver for serial flash memory via SPI and QSPI (#124)

* QSPI/SPI: flash memory functions
This commit is contained in:
BCG
2020-04-11 11:59:58 -04:00
committed by GitHub
parent 1987f424ad
commit b1529dcf7a
9 changed files with 1559 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
package main
import (
"machine"
"tinygo.org/x/drivers/examples/flash/console"
"tinygo.org/x/drivers/flash"
)
func main() {
console_example.RunFor(
flash.NewQSPI(
machine.QSPI_CS,
machine.QSPI_SCK,
machine.QSPI_DATA0,
machine.QSPI_DATA1,
machine.QSPI_DATA2,
machine.QSPI_DATA3,
),
)
}