[update] move dfs_posix.h to legacy/dfs/dfs_posix.h

This commit is contained in:
liukangcc 2022-01-11 15:20:14 +08:00 committed by Bernard Xiong
parent 211090203b
commit 3d2e23ec1c
72 changed files with 349 additions and 90 deletions

View File

@ -14,7 +14,11 @@
#include <dfs_elm.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"
// #define DRV_DEBUG

View File

@ -69,6 +69,14 @@
#include <dfs_posix.h>
#define PATH_SEPARATOR '/'
#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
/* Private typedef -----------------------------------------------------------*/

View File

@ -14,7 +14,11 @@
#include <dfs_elm.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"
#define DBG_TAG "app.card"

View File

@ -11,7 +11,10 @@
#if defined(RT_USING_DFS)
#include <dfs_file.h>
#include <dfs_posix.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#endif
#define BSP_FLASH_MOUNT_PATH "/mnt/flash"

View File

@ -22,7 +22,11 @@
#include <dfs.h>
#include <dfs_elm.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
#ifdef RT_USING_RTGUI

View File

@ -35,7 +35,11 @@
#endif
#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 DBG_LVL DBG_LOG

View File

@ -21,7 +21,11 @@
#if defined(RT_USING_DFS)
#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
/* Private define ---------------------------------------------------------------*/

View File

@ -21,7 +21,11 @@
#if defined(RT_USING_DFS)
#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
/* Private define ---------------------------------------------------------------*/

View File

@ -21,7 +21,11 @@
#if defined(RT_USING_DFS)
#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
/* Private define ---------------------------------------------------------------*/

View File

@ -16,7 +16,11 @@
#include "wavrecorder.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.

View File

@ -22,7 +22,11 @@
#if defined(RT_USING_DFS)
#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
/* Private define ---------------------------------------------------------------*/

View File

@ -23,7 +23,11 @@
#if defined(RT_USING_DFS)
#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
#if defined(PKG_USING_FAL)

View File

@ -23,7 +23,11 @@
#if defined(RT_USING_DFS)
#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
#if defined(PKG_USING_FAL)

View File

@ -23,7 +23,11 @@
#if defined(RT_USING_DFS)
#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
#if defined(PKG_USING_FAL)

View File

@ -14,7 +14,11 @@
#if defined(RT_USING_DFS)
#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
#if defined(PKG_USING_FAL)

View File

@ -14,7 +14,11 @@
#if defined(RT_USING_DFS)
#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
#if defined(PKG_USING_FAL)

View File

@ -14,7 +14,11 @@
#if defined(RT_USING_DFS)
#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
#if defined(PKG_USING_FAL)

View File

@ -193,7 +193,11 @@ RTM_EXPORT(rt_module_find);
#ifdef RT_USING_DFS
#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);
static char* _module_name(const char *path)
{

View File

@ -14,7 +14,11 @@
#include <dfs_elm.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_LVL DBG_INFO

View File

@ -14,7 +14,11 @@
#if defined BSP_USING_SDIO_SDCARD || defined BSP_USING_SPI_SDCARD
#include <dfs_elm.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"
#define DBG_TAG "app.card"

View File

@ -14,7 +14,11 @@
#include <dfs_elm.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_LVL DBG_INFO

View File

@ -14,7 +14,11 @@
#include <dfs_elm.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_LVL DBG_INFO

View File

@ -15,7 +15,11 @@
#ifdef BSP_USING_FS
#include <dfs_romfs.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
#error "Please define DFS_FILESYSTEMS_MAX more than 4"

View File

@ -14,7 +14,11 @@
#include <dfs_elm.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_LVL DBG_INFO

View File

@ -14,7 +14,11 @@
#include <dfs_elm.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_LVL DBG_INFO

View File

@ -15,7 +15,11 @@
#include <dfs_elm.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_LVL DBG_INFO

View File

@ -14,7 +14,11 @@
#include <dfs_elm.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"
#define DBG_TAG "app.card"

View File

@ -15,7 +15,11 @@
#include <dfs_elm.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_sdio.h"

View File

@ -14,7 +14,11 @@
#include <dfs_elm.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_LVL DBG_INFO

View File

@ -14,7 +14,11 @@
#include <dfs_elm.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_LVL DBG_INFO

View File

@ -14,7 +14,11 @@
#include <dfs_elm.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"
#define DBG_TAG "app.card"

View File

@ -12,7 +12,11 @@
#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_dcmi.h>
#include "pcf8574.h"

View File

@ -15,7 +15,11 @@
#include <dfs_elm.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 "spi_msd.h"

View File

@ -14,7 +14,11 @@
#include <dfs_elm.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_LVL DBG_INFO

View File

@ -10,7 +10,11 @@
#include <rtthread.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)
#define BUFSZ 1024

View File

@ -13,7 +13,11 @@
#if defined(BSP_USING_DCMI)
#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"
//#define DRV_DEBUG

View File

@ -13,7 +13,11 @@
#ifdef BSP_USING_AUDIO
#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 LOG_TAG "drv.sound"

View File

@ -260,7 +260,11 @@ MSH_CMD_EXPORT(wdt_sample, wdt sample);
#include "drv_spi.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)
{
@ -380,7 +384,11 @@ MSH_CMD_EXPORT(spi_w25q_sample, spi w25q sample);
//#define SDCARD_NAME "sd0"
//#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"
//static int rt_hw_spi1_tfcard(void)
@ -437,7 +445,11 @@ MSH_CMD_EXPORT(spi_w25q_sample, spi w25q sample);
#ifdef RT_USING_SDIO
#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)
{

View File

@ -260,7 +260,11 @@ MSH_CMD_EXPORT(wdt_sample, wdt sample);
#include "drv_spi.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)
{
@ -380,7 +384,11 @@ MSH_CMD_EXPORT(spi_w25q_sample, spi w25q sample);
//#define SDCARD_NAME "sd0"
//#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"
//static int rt_hw_spi1_tfcard(void)
@ -437,7 +445,11 @@ MSH_CMD_EXPORT(spi_w25q_sample, spi w25q sample);
#ifdef RT_USING_SDIO
#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)
{

View File

@ -37,7 +37,10 @@
#include <rtdbg.h>
#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 <sys/ioctl.h>

View File

@ -17,7 +17,9 @@
#include <rtdbg.h>
#ifdef RT_USING_POSIX_STDIO
#include <dfs_posix.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <poll.h>
#include <sys/ioctl.h>

View File

@ -14,8 +14,9 @@
#include <sys/errno.h>
#if defined(RT_USING_POSIX_DEVIO) && defined(RT_USING_POSIX_PIPE)
#include <dfs_file.h>
#include <dfs_posix.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <poll.h>
#include <sys/ioctl.h>

View File

@ -21,7 +21,10 @@
#include "msh.h"
#include "shell.h"
#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 */
#ifdef RT_USING_MODULE
#include <dlmodule.h>

View File

@ -15,7 +15,10 @@
#include <finsh.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)
{

View File

@ -28,7 +28,9 @@
#include "msh.h"
#ifdef DFS_USING_POSIX
#include <dfs_posix.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#endif /* DFS_USING_POSIX */
/* finsh thread */

View File

@ -12,7 +12,9 @@
#define __SYS_IOCTL_H__
#include <rtconfig.h>
#include <dfs_posix.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#ifdef _WIN32
#include <winsock.h>

View File

@ -15,7 +15,9 @@
#include "dlelf.h"
#if defined(RT_USING_POSIX)
#include <dfs_posix.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#endif
#define DBG_TAG "DLMD"

View File

@ -10,7 +10,10 @@
#include <stdint.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"
struct rt_workqueue* aio_queue = NULL;

View File

@ -12,7 +12,9 @@
#include <stdio.h>
#include <rtthread.h>
#include <dfs_posix.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include "sys/mman.h"

View File

@ -10,7 +10,9 @@
#include <stdlib.h>
#include <string.h>
#include <dfs_posix.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <sys/errno.h>
#include "termios.h"

View File

@ -11,7 +11,10 @@
#include <rtthread.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
#error "lwp need file system(RT_USING_DFS)"

View File

@ -13,7 +13,10 @@
#include <stdint.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/types.h>
#include <sys/ioctl.h>

View File

@ -10,7 +10,9 @@
#include <rtthread.h>
#include <dfs_posix.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <lwip/apps/tftp_server.h>
static struct tftp_context ctx;

View File

@ -10,7 +10,9 @@
#include <rtthread.h>
#include <dfs_posix.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <lwip/apps/tftp_server.h>
static struct tftp_context ctx;

View File

@ -10,7 +10,9 @@
#include <rtthread.h>
#include <dfs_posix.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <lwip/apps/tftp_server.h>
static struct tftp_context ctx;

View File

@ -11,7 +11,9 @@
#include <rtthread.h>
#ifdef RT_USING_DFS
#include <dfs_posix.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#endif
#ifdef SAL_USING_TLS

View File

@ -20,7 +20,9 @@
#define RTLINK_SERV(dev) (((struct rt_link_device*)dev)->service)
#ifdef RT_USING_POSIX_DEVIO
#include <dfs_posix.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <poll.h>
int rtlink_fops_open(struct dfs_fd *fd)

View File

@ -11,7 +11,10 @@
#include <rtthread.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 <stdlib.h>

View File

@ -13,8 +13,9 @@
#include <shell.h>
#include <rtdef.h>
#include <dfs.h>
#include <dfs_file.h>
#include <dfs_posix.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <stdio.h>
#include "zdef.h"

View File

@ -12,8 +12,9 @@
#include <shell.h>
#include <rtdef.h>
#include <dfs.h>
#include <dfs_file.h>
#include <dfs_posix.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include "zdef.h"

View File

@ -11,8 +11,9 @@
#include <shell.h>
#include <rtdef.h>
#include <dfs.h>
#include <dfs_file.h>
#include <dfs_posix.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <stdio.h>
#include "zdef.h"

View File

@ -11,8 +11,9 @@
#include <shell.h>
#include <rtdef.h>
#include <dfs.h>
#include <dfs_file.h>
#include <dfs_posix.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include "zdef.h"

View File

@ -9,7 +9,11 @@
* 2020-04-12 Jianjia Ma add msh cmd
*/
#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)
{

View File

@ -10,7 +10,11 @@
*/
#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)
{

View File

@ -10,7 +10,11 @@
*/
#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

View File

@ -8,7 +8,11 @@
* 2011-06-02 Bernard first version
* 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)
{

View File

@ -9,7 +9,11 @@
* 2020-04-12 Jianjia Ma add msh cmd
*/
#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)
{

View File

@ -12,7 +12,11 @@
#ifdef SAL_USING_POSIX
#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
#define read lwip_read
#define write lwip_write

View File

@ -46,7 +46,11 @@ static rt_err_t rtlink_dev_tx_done(rt_device_t dev, void *buffer)
}
#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 <sys/select.h>

View File

@ -11,7 +11,11 @@
*/
#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_thread_t fsrw1_thread = RT_NULL;

View File

@ -9,7 +9,11 @@
#include <rtthread.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 <board.h>