资源简介
最新Fatfs 官方源码,亲测可用,已移植至STM32。需要的可以下载。

代码片段和文件信息
/*------------------------------------------------------------/
/ Open or create a file in append mode
/ (This function was sperseded by FA_OPEN_APPEND flag at FatFs R0.12a)
/------------------------------------------------------------*/
FRESULT open_append (
FIL* fp /* [OUT] File object to create */
const char* path /* [IN] File name to be opened */
)
{
FRESULT fr;
/* Opens an existing file. If not exist creates a new file. */
fr = f_open(fp path FA_WRITE | FA_OPEN_ALWAYS);
if (fr == FR_OK) {
/* Seek to end of the file to append data */
fr = f_lseek(fp f_size(fp));
if (fr != FR_OK)
f_close(fp);
}
return fr;
}
int main (void)
{
FRESULT fr;
FATFS fs;
FIL fil;
/* Open or create a log file and ready to append */
f_mount(&fs ““ 0);
fr = open_append(&fil “logfile.txt“);
if (fr != FR_OK) return 1;
/* Append a line */
f_printf(&fil “%02u/%02u/%u %2u:%02u\n“ Mday Mon Year Hour Min);
/* Close the file */
f_close(&fil);
return 0;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 8501 2018-04-07 17:45 documents\00index_e.html
目录 0 2018-07-22 10:30 documents\doc\
文件 3139 2018-04-07 17:45 documents\doc\chdir.html
文件 2207 2018-04-07 17:45 documents\doc\chdrive.html
文件 3023 2018-04-07 17:45 documents\doc\chmod.html
文件 2148 2018-04-07 17:45 documents\doc\close.html
文件 2004 2018-04-07 17:45 documents\doc\closedir.html
文件 19332 2018-07-22 10:26 documents\doc\config.html
文件 1817 2018-04-07 17:45 documents\doc\dinit.html
文件 7628 2018-04-07 17:45 documents\doc\dioctl.html
文件 3763 2018-04-07 17:45 documents\doc\dread.html
文件 2273 2018-04-07 17:45 documents\doc\dstat.html
文件 3493 2018-04-07 17:45 documents\doc\dwrite.html
文件 1706 2018-04-07 17:45 documents\doc\eof.html
文件 1595 2018-04-07 17:45 documents\doc\error.html
文件 5294 2018-08-05 19:22 documents\doc\expand.html
文件 1725 2018-04-07 17:45 documents\doc\fattime.html
文件 4303 2018-04-07 17:45 documents\doc\fdisk.html
文件 10494 2018-04-07 17:45 documents\doc\filename.html
文件 5312 2018-04-07 17:45 documents\doc\findfirst.html
文件 2547 2018-04-07 17:45 documents\doc\findnext.html
文件 5476 2018-04-07 17:45 documents\doc\forward.html
文件 2673 2018-04-07 17:45 documents\doc\getcwd.html
文件 3481 2018-04-07 17:45 documents\doc\getfree.html
文件 3103 2018-04-07 17:45 documents\doc\getlabel.html
文件 3076 2018-04-07 17:45 documents\doc\gets.html
文件 7321 2018-04-07 17:45 documents\doc\lseek.html
文件 2370 2018-04-07 17:45 documents\doc\mkdir.html
文件 7870 2018-04-07 17:45 documents\doc\mkfs.html
文件 5602 2018-04-07 17:45 documents\doc\mount.html
文件 7707 2018-04-07 17:45 documents\doc\open.html
............此处省略60个文件信息
- 上一篇:Canny算子源代码
- 下一篇:南瑞老设备正反向隔离连接调试步骤
相关资源
- STM32基于rt_thread操作系统的SDHC卡文件
- 51模拟SPI读写SD卡(包括Fat和Fat32文件
- 广东工业大学操作系统实验四文件系
- 二级文件系统(操作系统)
- 基于stm32F103vct6的SD卡FATFS文件系统移植
- linux系统的二级文件系统(QT实现了简
- 为linux系统设计一个简单的二级文件系
- linux2.6.11.12内核源码注释
- zedboard ubuntu16.04文件系统
- ADC采集数据存储SD卡和读取程序
- STM32F429DISCOVERY外接SD卡使用SDIO4BIT方式
- uCOS-III+STemWin+Fatfs+usb在STM32F407上成功移
- linux环境下课程设计《二级文件系统》
- MooseFS 分布式文件系统源码分析202页,
- 多用户多级目录文件系统的实现
- 模拟Unix文件系统,操作系统课程设计
- linux文件系统设计
- 基于STM32平台的智能药箱系统包含文件
- stm32f103的sdio方式读sd卡,带fatfs文件系
- FATFS_ff13a
- Stm32驱动SDCard移植FATFS文件系统
- FS4412文件系统镜像文件
- 文件系统模拟 windows资源管理器模拟
- fuse文件系统课程设计源代码和设计文
- 操作系统课程设计报告-单用户多级文
- 模拟Linux文件系统含源码及报告
- stm32f429+FATFS+SD卡项目模版
- 数据结构课设文件系统模拟器
- stm32 SD卡 fat系统 串口控制台
- stm32+fatfs+SDIO读写TF卡
评论
共有 条评论