Nuvoton
/
NuMaker-mbed-SD-FileSystem-example
NuMaker SD-File-System with SD mode
Diff: main.cpp
- Revision:
- 3:577d5101a699
- Parent:
- 2:ee10b396e545
- Child:
- 15:1546e7e4196d
--- a/main.cpp Wed Mar 15 17:35:10 2017 +0800 +++ b/main.cpp Thu Mar 30 12:08:01 2017 +0000 @@ -24,10 +24,13 @@ int main() { int error = 0; - printf("Welcome to the filesystem example.\r\n" - "Formatting a FAT, SD-backed filesystem. "); + printf("Welcome to the filesystem example.\r\n"); + +#ifdef NU_TEST_FORMAT_SD + printf("Formatting a FAT, SD-backed filesystem. "); error = FATFileSystem::format(&bd); return_error(error); +#endif printf("Mounting the filesystem on \"/fs\". "); error = fs.mount(&bd);