[riot-notifications] [RIOT-OS/RIOT] examples: add filesystem example (#8559)

Vincent Dupont notifications at github.com
Wed Feb 14 15:58:53 CET 2018


vincent-d commented on this pull request.



> +        return 1;
+    }
+    if (write(fd, argv[2], strlen(argv[2])) != (ssize_t)strlen(argv[2])) {
+        puts("Error while writing");
+    }
+    close(fd);
+#endif
+    return 0;
+}
+
+static const shell_command_t shell_commands[] = {
+    { "mount", "mount flash filesystem", _mount },
+    { "format", "format flash file system", _format },
+    { "umount", "unmount flash filesystem", _umount },
+    { "cat", "print the content of a file", _cat },
+    { "write", "write a string in a file", _write },

changed ;)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/8559#discussion_r168199432
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20180214/6ad22b8b/attachment.html>


More information about the notifications mailing list