Tri Le
/
mbed-os-example-filesystem
file
Fork of mbed-os-example-mbed5-filesystem by
Revision 13:a8f6b52b6819, committed 2018-04-13
- Comitter:
- Triixk
- Date:
- Fri Apr 13 09:16:27 2018 +0000
- Parent:
- 12:a07d0af60cc6
- Commit message:
- themur er noob igjen;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r a07d0af60cc6 -r a8f6b52b6819 main.cpp --- a/main.cpp Thu Apr 05 15:30:17 2018 +0100 +++ b/main.cpp Fri Apr 13 09:16:27 2018 +0000 @@ -17,6 +17,8 @@ #include <stdio.h> #include <errno.h> +#define BUTTON1 p18 + // Block devices #include "SPIFBlockDevice.h" #include "DataFlashBlockDevice.h" @@ -29,15 +31,15 @@ // Physical block device, can be any device that supports the BlockDevice API -SPIFBlockDevice bd( - MBED_CONF_SPIF_DRIVER_SPI_MOSI, - MBED_CONF_SPIF_DRIVER_SPI_MISO, - MBED_CONF_SPIF_DRIVER_SPI_CLK, - MBED_CONF_SPIF_DRIVER_SPI_CS); +SDBlockDevice bd( + MBED_CONF_SD_SPI_MOSI, + MBED_CONF_SD_SPI_MISO, + MBED_CONF_SD_SPI_CLK, + MBED_CONF_SD_SPI_CS); // File system declaration -LittleFileSystem fs("fs"); - +//LittleFileSystem fs("fs"); +FATFileSystem fs("fs"); // Set up the button to trigger an erase InterruptIn irq(BUTTON1);