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
+20
View File
@@ -0,0 +1,20 @@
package main
import (
"machine"
"tinygo.org/x/drivers/examples/flash/console"
"tinygo.org/x/drivers/flash"
)
func main() {
console_example.RunFor(
flash.NewSPI(
&machine.SPI1,
machine.SPI1_MOSI_PIN,
machine.SPI1_MISO_PIN,
machine.SPI1_SCK_PIN,
machine.SPI1_CS_PIN,
),
)
}