Skip to content

xianrenqiu/fatfs_samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fatfs samples

layers

示例为 fatfslinux 平台的示例代码,基于 fatfs R0.13a 版本修改了 diskio.c/diskio.h 文件, 示例中使用系统 RAMDISK 作为设备载体,可作为移植到嵌入式设备的前期调试环境。

编译

$ mkdir build && cd build
$ cmake ..
$ make

运行

$ ./sample

  fatfs sample use RAM.

  0. creat fatfs system success

  1. mkdir success, dir name: /abc

  2. open /abc/file1.txt file success
  3. write 1234567 to /abc/file1.txt file success

  4. dir name: ABC
  5. file name: FILE1.TXT

  6. open /abc/file1.txt file success
  7. read 1234567 from /abc/file1.txt file success

About

可作为 fatfs 移植调试环境

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages