[update] move dfs_posix.h to legacy/dfs/dfs_posix.h
This commit is contained in:
parent
211090203b
commit
3d2e23ec1c
|
@ -14,7 +14,11 @@
|
||||||
|
|
||||||
#include <dfs_elm.h>
|
#include <dfs_elm.h>
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include "drv_gpio.h"
|
#include "drv_gpio.h"
|
||||||
|
|
||||||
// #define DRV_DEBUG
|
// #define DRV_DEBUG
|
||||||
|
|
|
@ -69,6 +69,14 @@
|
||||||
#include <dfs_posix.h>
|
#include <dfs_posix.h>
|
||||||
#define PATH_SEPARATOR '/'
|
#define PATH_SEPARATOR '/'
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(RTGUI_USING_DFS_FILERW)
|
||||||
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
#define PATH_SEPARATOR '/'
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Private typedef -----------------------------------------------------------*/
|
/* Private typedef -----------------------------------------------------------*/
|
||||||
|
|
|
@ -14,7 +14,11 @@
|
||||||
|
|
||||||
#include <dfs_elm.h>
|
#include <dfs_elm.h>
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include "drv_sdctrl.h"
|
#include "drv_sdctrl.h"
|
||||||
|
|
||||||
#define DBG_TAG "app.card"
|
#define DBG_TAG "app.card"
|
||||||
|
|
|
@ -11,7 +11,10 @@
|
||||||
|
|
||||||
#if defined(RT_USING_DFS)
|
#if defined(RT_USING_DFS)
|
||||||
#include <dfs_file.h>
|
#include <dfs_file.h>
|
||||||
#include <dfs_posix.h>
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BSP_FLASH_MOUNT_PATH "/mnt/flash"
|
#define BSP_FLASH_MOUNT_PATH "/mnt/flash"
|
||||||
|
|
|
@ -22,7 +22,11 @@
|
||||||
#include <dfs.h>
|
#include <dfs.h>
|
||||||
#include <dfs_elm.h>
|
#include <dfs_elm.h>
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_RTGUI
|
#ifdef RT_USING_RTGUI
|
||||||
|
|
|
@ -35,7 +35,11 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "fal.h"
|
#include "fal.h"
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
#define LOG_TAG "drv.fs"
|
#define LOG_TAG "drv.fs"
|
||||||
#define DBG_LVL DBG_LOG
|
#define DBG_LVL DBG_LOG
|
||||||
|
|
|
@ -21,7 +21,11 @@
|
||||||
|
|
||||||
#if defined(RT_USING_DFS)
|
#if defined(RT_USING_DFS)
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Private define ---------------------------------------------------------------*/
|
/* Private define ---------------------------------------------------------------*/
|
||||||
|
|
|
@ -21,7 +21,11 @@
|
||||||
|
|
||||||
#if defined(RT_USING_DFS)
|
#if defined(RT_USING_DFS)
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Private define ---------------------------------------------------------------*/
|
/* Private define ---------------------------------------------------------------*/
|
||||||
|
|
|
@ -21,7 +21,11 @@
|
||||||
|
|
||||||
#if defined(RT_USING_DFS)
|
#if defined(RT_USING_DFS)
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Private define ---------------------------------------------------------------*/
|
/* Private define ---------------------------------------------------------------*/
|
||||||
|
|
|
@ -16,7 +16,11 @@
|
||||||
|
|
||||||
#include "wavrecorder.h"
|
#include "wavrecorder.h"
|
||||||
#include "wavplayer.h"
|
#include "wavplayer.h"
|
||||||
#include "dfs_posix.h"
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
The routine just for test automatically.
|
The routine just for test automatically.
|
||||||
|
|
|
@ -22,7 +22,11 @@
|
||||||
|
|
||||||
#if defined(RT_USING_DFS)
|
#if defined(RT_USING_DFS)
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Private define ---------------------------------------------------------------*/
|
/* Private define ---------------------------------------------------------------*/
|
||||||
|
|
|
@ -23,7 +23,11 @@
|
||||||
|
|
||||||
#if defined(RT_USING_DFS)
|
#if defined(RT_USING_DFS)
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PKG_USING_FAL)
|
#if defined(PKG_USING_FAL)
|
||||||
|
|
|
@ -23,7 +23,11 @@
|
||||||
|
|
||||||
#if defined(RT_USING_DFS)
|
#if defined(RT_USING_DFS)
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PKG_USING_FAL)
|
#if defined(PKG_USING_FAL)
|
||||||
|
|
|
@ -23,7 +23,11 @@
|
||||||
|
|
||||||
#if defined(RT_USING_DFS)
|
#if defined(RT_USING_DFS)
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PKG_USING_FAL)
|
#if defined(PKG_USING_FAL)
|
||||||
|
|
|
@ -14,7 +14,11 @@
|
||||||
|
|
||||||
#if defined(RT_USING_DFS)
|
#if defined(RT_USING_DFS)
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PKG_USING_FAL)
|
#if defined(PKG_USING_FAL)
|
||||||
|
|
|
@ -14,7 +14,11 @@
|
||||||
|
|
||||||
#if defined(RT_USING_DFS)
|
#if defined(RT_USING_DFS)
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PKG_USING_FAL)
|
#if defined(PKG_USING_FAL)
|
||||||
|
|
|
@ -14,7 +14,11 @@
|
||||||
|
|
||||||
#if defined(RT_USING_DFS)
|
#if defined(RT_USING_DFS)
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PKG_USING_FAL)
|
#if defined(PKG_USING_FAL)
|
||||||
|
|
|
@ -193,7 +193,11 @@ RTM_EXPORT(rt_module_find);
|
||||||
|
|
||||||
#ifdef RT_USING_DFS
|
#ifdef RT_USING_DFS
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
extern char * dfs_win32_dirdup(char * path);
|
extern char * dfs_win32_dirdup(char * path);
|
||||||
static char* _module_name(const char *path)
|
static char* _module_name(const char *path)
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,7 +14,11 @@
|
||||||
|
|
||||||
#include <dfs_elm.h>
|
#include <dfs_elm.h>
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
#define DBG_TAG "app.card"
|
#define DBG_TAG "app.card"
|
||||||
#define DBG_LVL DBG_INFO
|
#define DBG_LVL DBG_INFO
|
||||||
|
|
|
@ -14,7 +14,11 @@
|
||||||
#if defined BSP_USING_SDIO_SDCARD || defined BSP_USING_SPI_SDCARD
|
#if defined BSP_USING_SDIO_SDCARD || defined BSP_USING_SPI_SDCARD
|
||||||
#include <dfs_elm.h>
|
#include <dfs_elm.h>
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include "drv_gpio.h"
|
#include "drv_gpio.h"
|
||||||
|
|
||||||
#define DBG_TAG "app.card"
|
#define DBG_TAG "app.card"
|
||||||
|
|
|
@ -14,7 +14,11 @@
|
||||||
|
|
||||||
#include <dfs_elm.h>
|
#include <dfs_elm.h>
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
#define DBG_TAG "app.card"
|
#define DBG_TAG "app.card"
|
||||||
#define DBG_LVL DBG_INFO
|
#define DBG_LVL DBG_INFO
|
||||||
|
|
|
@ -14,7 +14,11 @@
|
||||||
|
|
||||||
#include <dfs_elm.h>
|
#include <dfs_elm.h>
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
#define DBG_TAG "app.card"
|
#define DBG_TAG "app.card"
|
||||||
#define DBG_LVL DBG_INFO
|
#define DBG_LVL DBG_INFO
|
||||||
|
|
|
@ -15,7 +15,11 @@
|
||||||
#ifdef BSP_USING_FS
|
#ifdef BSP_USING_FS
|
||||||
#include <dfs_romfs.h>
|
#include <dfs_romfs.h>
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
#if DFS_FILESYSTEMS_MAX < 4
|
#if DFS_FILESYSTEMS_MAX < 4
|
||||||
#error "Please define DFS_FILESYSTEMS_MAX more than 4"
|
#error "Please define DFS_FILESYSTEMS_MAX more than 4"
|
||||||
|
|
|
@ -14,7 +14,11 @@
|
||||||
|
|
||||||
#include <dfs_elm.h>
|
#include <dfs_elm.h>
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
#define DBG_TAG "app.card"
|
#define DBG_TAG "app.card"
|
||||||
#define DBG_LVL DBG_INFO
|
#define DBG_LVL DBG_INFO
|
||||||
|
|
|
@ -14,7 +14,11 @@
|
||||||
|
|
||||||
#include <dfs_elm.h>
|
#include <dfs_elm.h>
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
#define DBG_TAG "app.card"
|
#define DBG_TAG "app.card"
|
||||||
#define DBG_LVL DBG_INFO
|
#define DBG_LVL DBG_INFO
|
||||||
|
|
|
@ -15,7 +15,11 @@
|
||||||
|
|
||||||
#include <dfs_elm.h>
|
#include <dfs_elm.h>
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
#define DBG_TAG "app.card"
|
#define DBG_TAG "app.card"
|
||||||
#define DBG_LVL DBG_INFO
|
#define DBG_LVL DBG_INFO
|
||||||
|
|
|
@ -14,7 +14,11 @@
|
||||||
|
|
||||||
#include <dfs_elm.h>
|
#include <dfs_elm.h>
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include "drv_gpio.h"
|
#include "drv_gpio.h"
|
||||||
|
|
||||||
#define DBG_TAG "app.card"
|
#define DBG_TAG "app.card"
|
||||||
|
|
|
@ -15,7 +15,11 @@
|
||||||
|
|
||||||
#include <dfs_elm.h>
|
#include <dfs_elm.h>
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include "drv_gpio.h"
|
#include "drv_gpio.h"
|
||||||
#include "drv_sdio.h"
|
#include "drv_sdio.h"
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,11 @@
|
||||||
|
|
||||||
#include <dfs_elm.h>
|
#include <dfs_elm.h>
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
#define DBG_TAG "app.card"
|
#define DBG_TAG "app.card"
|
||||||
#define DBG_LVL DBG_INFO
|
#define DBG_LVL DBG_INFO
|
||||||
|
|
|
@ -14,7 +14,11 @@
|
||||||
|
|
||||||
#include <dfs_elm.h>
|
#include <dfs_elm.h>
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
#define DBG_TAG "app.card"
|
#define DBG_TAG "app.card"
|
||||||
#define DBG_LVL DBG_INFO
|
#define DBG_LVL DBG_INFO
|
||||||
|
|
|
@ -14,7 +14,11 @@
|
||||||
|
|
||||||
#include <dfs_elm.h>
|
#include <dfs_elm.h>
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include "drv_gpio.h"
|
#include "drv_gpio.h"
|
||||||
|
|
||||||
#define DBG_TAG "app.card"
|
#define DBG_TAG "app.card"
|
||||||
|
|
|
@ -12,7 +12,11 @@
|
||||||
|
|
||||||
#if defined(BSP_USING_OV2640)
|
#if defined(BSP_USING_OV2640)
|
||||||
|
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include <drv_ov2640.h>
|
#include <drv_ov2640.h>
|
||||||
#include <drv_dcmi.h>
|
#include <drv_dcmi.h>
|
||||||
#include "pcf8574.h"
|
#include "pcf8574.h"
|
||||||
|
|
|
@ -15,7 +15,11 @@
|
||||||
|
|
||||||
#include <dfs_elm.h>
|
#include <dfs_elm.h>
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include "drv_spi.h"
|
#include "drv_spi.h"
|
||||||
#include "spi_msd.h"
|
#include "spi_msd.h"
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,11 @@
|
||||||
|
|
||||||
#include <dfs_elm.h>
|
#include <dfs_elm.h>
|
||||||
#include <dfs_fs.h>
|
#include <dfs_fs.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
#define DBG_TAG "app.card"
|
#define DBG_TAG "app.card"
|
||||||
#define DBG_LVL DBG_INFO
|
#define DBG_LVL DBG_INFO
|
||||||
|
|
|
@ -10,7 +10,11 @@
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
#if defined(BSP_USING_AUDIO) && defined(BSP_USING_SDMMC)
|
#if defined(BSP_USING_AUDIO) && defined(BSP_USING_SDMMC)
|
||||||
#define BUFSZ 1024
|
#define BUFSZ 1024
|
||||||
|
|
|
@ -13,7 +13,11 @@
|
||||||
#if defined(BSP_USING_DCMI)
|
#if defined(BSP_USING_DCMI)
|
||||||
|
|
||||||
#include "drv_mfx.h"
|
#include "drv_mfx.h"
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include "drv_ov5640.h"
|
#include "drv_ov5640.h"
|
||||||
|
|
||||||
//#define DRV_DEBUG
|
//#define DRV_DEBUG
|
||||||
|
|
|
@ -13,7 +13,11 @@
|
||||||
|
|
||||||
#ifdef BSP_USING_AUDIO
|
#ifdef BSP_USING_AUDIO
|
||||||
#include "drv_wm8994.h"
|
#include "drv_wm8994.h"
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
#define DRV_DEBUG
|
#define DRV_DEBUG
|
||||||
#define LOG_TAG "drv.sound"
|
#define LOG_TAG "drv.sound"
|
||||||
|
|
|
@ -260,7 +260,11 @@ MSH_CMD_EXPORT(wdt_sample, wdt sample);
|
||||||
|
|
||||||
#include "drv_spi.h"
|
#include "drv_spi.h"
|
||||||
#include "spi_flash_sfud.h"
|
#include "spi_flash_sfud.h"
|
||||||
#include "dfs_posix.h"
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
static int rt_hw_spi_flash_init(void)
|
static int rt_hw_spi_flash_init(void)
|
||||||
{
|
{
|
||||||
|
@ -380,7 +384,11 @@ MSH_CMD_EXPORT(spi_w25q_sample, spi w25q sample);
|
||||||
//#define SDCARD_NAME "sd0"
|
//#define SDCARD_NAME "sd0"
|
||||||
|
|
||||||
//#include "drv_spi.h"
|
//#include "drv_spi.h"
|
||||||
//#include "dfs_posix.h"
|
// #include <dfs_file.h>
|
||||||
|
// #include <unistd.h>
|
||||||
|
// #include <stdio.h>
|
||||||
|
// #include <sys/stat.h>
|
||||||
|
// #include <sys/statfs.h>
|
||||||
//#include "spi_msd.h"
|
//#include "spi_msd.h"
|
||||||
|
|
||||||
//static int rt_hw_spi1_tfcard(void)
|
//static int rt_hw_spi1_tfcard(void)
|
||||||
|
@ -437,7 +445,11 @@ MSH_CMD_EXPORT(spi_w25q_sample, spi w25q sample);
|
||||||
#ifdef RT_USING_SDIO
|
#ifdef RT_USING_SDIO
|
||||||
#define SDCARD_NAME "sd0"
|
#define SDCARD_NAME "sd0"
|
||||||
|
|
||||||
#include "dfs_posix.h"
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
static void sdio_elmfat_sample(void)
|
static void sdio_elmfat_sample(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -260,7 +260,11 @@ MSH_CMD_EXPORT(wdt_sample, wdt sample);
|
||||||
|
|
||||||
#include "drv_spi.h"
|
#include "drv_spi.h"
|
||||||
#include "spi_flash_sfud.h"
|
#include "spi_flash_sfud.h"
|
||||||
#include "dfs_posix.h"
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
static int rt_hw_spi_flash_init(void)
|
static int rt_hw_spi_flash_init(void)
|
||||||
{
|
{
|
||||||
|
@ -380,7 +384,11 @@ MSH_CMD_EXPORT(spi_w25q_sample, spi w25q sample);
|
||||||
//#define SDCARD_NAME "sd0"
|
//#define SDCARD_NAME "sd0"
|
||||||
|
|
||||||
//#include "drv_spi.h"
|
//#include "drv_spi.h"
|
||||||
//#include "dfs_posix.h"
|
// #include <dfs_file.h>
|
||||||
|
// #include <unistd.h>
|
||||||
|
// #include <stdio.h>
|
||||||
|
// #include <sys/stat.h>
|
||||||
|
// #include <sys/statfs.h>
|
||||||
//#include "spi_msd.h"
|
//#include "spi_msd.h"
|
||||||
|
|
||||||
//static int rt_hw_spi1_tfcard(void)
|
//static int rt_hw_spi1_tfcard(void)
|
||||||
|
@ -437,7 +445,11 @@ MSH_CMD_EXPORT(spi_w25q_sample, spi w25q sample);
|
||||||
#ifdef RT_USING_SDIO
|
#ifdef RT_USING_SDIO
|
||||||
#define SDCARD_NAME "sd0"
|
#define SDCARD_NAME "sd0"
|
||||||
|
|
||||||
#include "dfs_posix.h"
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
static void sdio_elmfat_sample(void)
|
static void sdio_elmfat_sample(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,7 +37,10 @@
|
||||||
#include <rtdbg.h>
|
#include <rtdbg.h>
|
||||||
|
|
||||||
#ifdef RT_USING_POSIX_STDIO
|
#ifdef RT_USING_POSIX_STDIO
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,9 @@
|
||||||
#include <rtdbg.h>
|
#include <rtdbg.h>
|
||||||
|
|
||||||
#ifdef RT_USING_POSIX_STDIO
|
#ifdef RT_USING_POSIX_STDIO
|
||||||
#include <dfs_posix.h>
|
#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,9 @@
|
||||||
#include <sys/errno.h>
|
#include <sys/errno.h>
|
||||||
|
|
||||||
#if defined(RT_USING_POSIX_DEVIO) && defined(RT_USING_POSIX_PIPE)
|
#if defined(RT_USING_POSIX_DEVIO) && defined(RT_USING_POSIX_PIPE)
|
||||||
#include <dfs_file.h>
|
#include <unistd.h>
|
||||||
#include <dfs_posix.h>
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,10 @@
|
||||||
#include "msh.h"
|
#include "msh.h"
|
||||||
#include "shell.h"
|
#include "shell.h"
|
||||||
#ifdef DFS_USING_POSIX
|
#ifdef DFS_USING_POSIX
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#endif /* DFS_USING_POSIX */
|
#endif /* DFS_USING_POSIX */
|
||||||
#ifdef RT_USING_MODULE
|
#ifdef RT_USING_MODULE
|
||||||
#include <dlmodule.h>
|
#include <dlmodule.h>
|
||||||
|
|
|
@ -15,7 +15,10 @@
|
||||||
|
|
||||||
#include <finsh.h>
|
#include <finsh.h>
|
||||||
#include "msh.h"
|
#include "msh.h"
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
static int msh_readline(int fd, char *line_buf, int size)
|
static int msh_readline(int fd, char *line_buf, int size)
|
||||||
{
|
{
|
||||||
|
|
|
@ -28,7 +28,9 @@
|
||||||
#include "msh.h"
|
#include "msh.h"
|
||||||
|
|
||||||
#ifdef DFS_USING_POSIX
|
#ifdef DFS_USING_POSIX
|
||||||
#include <dfs_posix.h>
|
#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#endif /* DFS_USING_POSIX */
|
#endif /* DFS_USING_POSIX */
|
||||||
|
|
||||||
/* finsh thread */
|
/* finsh thread */
|
||||||
|
|
|
@ -12,7 +12,9 @@
|
||||||
#define __SYS_IOCTL_H__
|
#define __SYS_IOCTL_H__
|
||||||
|
|
||||||
#include <rtconfig.h>
|
#include <rtconfig.h>
|
||||||
#include <dfs_posix.h>
|
#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <winsock.h>
|
#include <winsock.h>
|
||||||
|
|
|
@ -15,7 +15,9 @@
|
||||||
#include "dlelf.h"
|
#include "dlelf.h"
|
||||||
|
|
||||||
#if defined(RT_USING_POSIX)
|
#if defined(RT_USING_POSIX)
|
||||||
#include <dfs_posix.h>
|
#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DBG_TAG "DLMD"
|
#define DBG_TAG "DLMD"
|
||||||
|
|
|
@ -10,7 +10,10 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <rthw.h>
|
#include <rthw.h>
|
||||||
#include <dfs_posix.h>
|
#include <unistd.h>
|
||||||
|
#include <dfs_file.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include "aio.h"
|
#include "aio.h"
|
||||||
|
|
||||||
struct rt_workqueue* aio_queue = NULL;
|
struct rt_workqueue* aio_queue = NULL;
|
||||||
|
|
|
@ -12,7 +12,9 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <dfs_posix.h>
|
#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
#include "sys/mman.h"
|
#include "sys/mman.h"
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,9 @@
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <dfs_posix.h>
|
#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include <sys/errno.h>
|
#include <sys/errno.h>
|
||||||
#include "termios.h"
|
#include "termios.h"
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,10 @@
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <rthw.h>
|
#include <rthw.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
#ifndef RT_USING_DFS
|
#ifndef RT_USING_DFS
|
||||||
#error "lwp need file system(RT_USING_DFS)"
|
#error "lwp need file system(RT_USING_DFS)"
|
||||||
|
|
|
@ -13,7 +13,10 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
|
@ -10,7 +10,9 @@
|
||||||
|
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <dfs_posix.h>
|
#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include <lwip/apps/tftp_server.h>
|
#include <lwip/apps/tftp_server.h>
|
||||||
|
|
||||||
static struct tftp_context ctx;
|
static struct tftp_context ctx;
|
||||||
|
|
|
@ -10,7 +10,9 @@
|
||||||
|
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <dfs_posix.h>
|
#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include <lwip/apps/tftp_server.h>
|
#include <lwip/apps/tftp_server.h>
|
||||||
|
|
||||||
static struct tftp_context ctx;
|
static struct tftp_context ctx;
|
||||||
|
|
|
@ -10,7 +10,9 @@
|
||||||
|
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <dfs_posix.h>
|
#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include <lwip/apps/tftp_server.h>
|
#include <lwip/apps/tftp_server.h>
|
||||||
|
|
||||||
static struct tftp_context ctx;
|
static struct tftp_context ctx;
|
||||||
|
|
|
@ -11,7 +11,9 @@
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
|
|
||||||
#ifdef RT_USING_DFS
|
#ifdef RT_USING_DFS
|
||||||
#include <dfs_posix.h>
|
#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SAL_USING_TLS
|
#ifdef SAL_USING_TLS
|
||||||
|
|
|
@ -20,7 +20,9 @@
|
||||||
#define RTLINK_SERV(dev) (((struct rt_link_device*)dev)->service)
|
#define RTLINK_SERV(dev) (((struct rt_link_device*)dev)->service)
|
||||||
|
|
||||||
#ifdef RT_USING_POSIX_DEVIO
|
#ifdef RT_USING_POSIX_DEVIO
|
||||||
#include <dfs_posix.h>
|
#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
|
|
||||||
int rtlink_fops_open(struct dfs_fd *fd)
|
int rtlink_fops_open(struct dfs_fd *fd)
|
||||||
|
|
|
@ -11,7 +11,10 @@
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <ymodem.h>
|
#include <ymodem.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -13,8 +13,9 @@
|
||||||
#include <shell.h>
|
#include <shell.h>
|
||||||
#include <rtdef.h>
|
#include <rtdef.h>
|
||||||
#include <dfs.h>
|
#include <dfs.h>
|
||||||
#include <dfs_file.h>
|
#include <unistd.h>
|
||||||
#include <dfs_posix.h>
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "zdef.h"
|
#include "zdef.h"
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,9 @@
|
||||||
#include <shell.h>
|
#include <shell.h>
|
||||||
#include <rtdef.h>
|
#include <rtdef.h>
|
||||||
#include <dfs.h>
|
#include <dfs.h>
|
||||||
#include <dfs_file.h>
|
#include <unistd.h>
|
||||||
#include <dfs_posix.h>
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include "zdef.h"
|
#include "zdef.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,9 @@
|
||||||
#include <shell.h>
|
#include <shell.h>
|
||||||
#include <rtdef.h>
|
#include <rtdef.h>
|
||||||
#include <dfs.h>
|
#include <dfs.h>
|
||||||
#include <dfs_file.h>
|
#include <unistd.h>
|
||||||
#include <dfs_posix.h>
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "zdef.h"
|
#include "zdef.h"
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,9 @@
|
||||||
#include <shell.h>
|
#include <shell.h>
|
||||||
#include <rtdef.h>
|
#include <rtdef.h>
|
||||||
#include <dfs.h>
|
#include <dfs.h>
|
||||||
#include <dfs_file.h>
|
#include <unistd.h>
|
||||||
#include <dfs_posix.h>
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include "zdef.h"
|
#include "zdef.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,11 @@
|
||||||
* 2020-04-12 Jianjia Ma add msh cmd
|
* 2020-04-12 Jianjia Ma add msh cmd
|
||||||
*/
|
*/
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
void list_dir(const char* path)
|
void list_dir(const char* path)
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,7 +10,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
void readspeed(const char* filename, int block_size)
|
void readspeed(const char* filename, int block_size)
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,7 +10,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
#define TEST_DATA_LEN 120
|
#define TEST_DATA_LEN 120
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,11 @@
|
||||||
* 2011-06-02 Bernard first version
|
* 2011-06-02 Bernard first version
|
||||||
* 2020-04-12 Jianjia Ma add msh cmd
|
* 2020-04-12 Jianjia Ma add msh cmd
|
||||||
*/
|
*/
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
void seekdir_test(void)
|
void seekdir_test(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,7 +9,11 @@
|
||||||
* 2020-04-12 Jianjia Ma add msh cmd
|
* 2020-04-12 Jianjia Ma add msh cmd
|
||||||
*/
|
*/
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
void writespeed(const char* filename, int total_length, int block_size)
|
void writespeed(const char* filename, int total_length, int block_size)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,11 @@
|
||||||
|
|
||||||
#ifdef SAL_USING_POSIX
|
#ifdef SAL_USING_POSIX
|
||||||
#include <sys/select.h> // only dfs_net
|
#include <sys/select.h> // only dfs_net
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#else
|
#else
|
||||||
#define read lwip_read
|
#define read lwip_read
|
||||||
#define write lwip_write
|
#define write lwip_write
|
||||||
|
|
|
@ -46,7 +46,11 @@ static rt_err_t rtlink_dev_tx_done(rt_device_t dev, void *buffer)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef RT_USING_POSIX_DEVIO
|
#ifdef RT_USING_POSIX_DEVIO
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
static rt_uint32_t stop_flag = 0;
|
static rt_uint32_t stop_flag = 0;
|
||||||
static rt_thread_t fsrw1_thread = RT_NULL;
|
static rt_thread_t fsrw1_thread = RT_NULL;
|
||||||
|
|
|
@ -9,7 +9,11 @@
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
#include <ymodem.h>
|
#include <ymodem.h>
|
||||||
#include <dfs_posix.h>
|
#include <dfs_file.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <board.h>
|
#include <board.h>
|
||||||
|
|
Loading…
Reference in New Issue