sdcard: add support for fatfs

This commit is contained in:
sago35
2021-05-14 19:03:12 +09:00
committed by Ron Evans
parent 5a02fe068b
commit 6b914f7af7
25 changed files with 870 additions and 67 deletions
+20
View File
@@ -0,0 +1,20 @@
# SPI sdcard/mmc driver
This package provides the driver for sdcard/mmc with SPI connection.
`examples/sdcard/console` shows a low-level access example.
`examples/sdcard/tinyfs` shows an example of using fatfs to read FAT32.
If you use this package, you need to set `default-stack-size` in `targets/*.json`.
For example, `targets/wioterminal.json` has the following configuration.
```
{
"inherits": ["atsamd51p19a"],
"build-tags": ["wioterminal"],
"flash-1200-bps-reset": "true",
"flash-method": "msd",
"msd-volume-name": "Arduino",
"msd-firmware-name": "firmware.uf2",
"default-stack-size": 2048
}
```