/* * Copyright (C) 2022 ML!PA Consulting GmbH * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup tests * @{ * * @file * @brief Test application for vfs_default * * @author Benjamin Valentin * @} */ #include #include "shell.h" #include "vfs_default.h" int main(void) { vfs_DIR mount = {0}; /* list mounted file systems */ puts("mount points:"); while (vfs_iterate_mount_dirs(&mount)) { printf("\t%s\n", mount.mp->mount_point); } printf("\ndata dir: %s\n", VFS_DEFAULT_DATA); /* start the shell */ char line_buf[SHELL_DEFAULT_BUFSIZE]; shell_run(NULL, line_buf, SHELL_DEFAULT_BUFSIZE); return 0; }