2021-02-05 18:52:13 +08:00
|
|
|
/**************************************************************************//**
|
|
|
|
*
|
|
|
|
* @copyright (C) 2019 Nuvoton Technology Corp. All rights reserved.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2020-8-26 Wayne First version
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
2022-06-03 10:01:15 +08:00
|
|
|
#include <rtthread.h>
|
|
|
|
|
|
|
|
#define LOG_TAG "mnt"
|
|
|
|
#define DBG_ENABLE
|
|
|
|
#define DBG_SECTION_NAME "mnt"
|
|
|
|
#define DBG_LEVEL DBG_ERROR
|
|
|
|
#define DBG_COLOR
|
|
|
|
#include <rtdbg.h>
|
|
|
|
|
|
|
|
#include <dfs_fs.h>
|
|
|
|
#include <dfs_file.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <sys/statfs.h>
|
|
|
|
|
|
|
|
#ifdef RT_USING_DFS_MNTTABLE
|
|
|
|
|
|
|
|
/*
|
|
|
|
const char *device_name;
|
|
|
|
const char *path;
|
|
|
|
const char *filesystemtype;
|
|
|
|
unsigned long rwflag;
|
|
|
|
const void *data;
|
|
|
|
*/
|
|
|
|
|
|
|
|
const struct dfs_mount_tbl mount_table[] =
|
|
|
|
{
|
|
|
|
{ "sd0", "/", "elm", 0, RT_NULL },
|
|
|
|
{0},
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|