打印
[牛人杂谈]

FatFs - Generic FAT File System Module

[复制链接]
1746|7
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
本帖最后由 wahahaheihei 于 2016-10-10 13:04 编辑

说起来文件系统,我今天给大家介绍个。http://elm-chan.org/fsw/ff/00index_e.html
——————————————————————————-——
FatFs - Generic FAT File System Module
FatFs is a generic FAT/exFAT file system module for small embedded systems. The FatFs module is written in compliance with ANSI C (C89) and completely separated from the disk I/O layer. Therefore it is independent of the platform. It can be incorporated into small microcontrollers with limited resource, such as 8051, PIC, AVR, ARM, Z80, 78K and etc. Also Petit FatFs module for tiny microcontrollers is available here.
Features
  • Windows compatible FAT/exFAT file system.
  • Platform independent. Easy to port.
  • Very small footprint for program code and work area.
  • Various configuration options to support for:
    • Multiple volumes (physical drives and partitions).
    • Multiple ANSI/OEM code pages including DBCS.
    • Long file name in ANSI/OEM or Unicode.
    • exFAT file system.
    • RTOS envilonment.
    • Fixed or variable sector size.
    • Read-only, optional API, I/O buffer and etc...


Application Interface
  • File Access
  • Directory Access
  • File/Directory Management
    • f_stat - Check existance of a file or sub-directory
    • f_unlink - Remove a file or sub-directory
    • f_rename - Rename or move a file or sub-directory
    • f_chmod - Change attribute of a file or sub-directory
    • f_utime - Change timestamp of a file or sub-directory
    • f_mkdir - Create a sub-directory
    • f_chdir - Change current directory
    • f_chdrive - Change current drive
    • f_getcwd - Retrieve the current directory and drive
  • Volume Management
    • f_mount - Register/Unregister a work area of a volume
    • f_mkfs - Create an FAT volume on the logical drive
    • f_fdisk - Create logical drives on the physical drive
    • f_getfree - Get total size and free size on the volume
    • f_getlabel - Get volume label
    • f_setlabel - Set volume label


Device Control Interface
Since the FatFs module is a file system layer, it is completely separated from the physical devices, such as memory card, harddisk and any type of storage device. FatFs accesses the storage devices via a simple interface shown below. The low level device control module isnot a part of FatFs module. It is provided by implementer. Also sample implementations for some platforms are available in the downloads.

Resources
The FatFs module is a free software opened for education, research and development. You can use, modify and/or redistribute it for personal projects or commercial products without any restriction under your responsibility. For further information, refer to the application note.


沙发
wahahaheihei|  楼主 | 2016-9-30 19:27 | 只看该作者
问题来了,一个单片机项目里,文件系统和操作硬件的程序是什么关系。

使用特权

评论回复
板凳
戈卫东| | 2016-9-30 21:47 | 只看该作者
你的标题居然把FatFs的第一个F漏掉了。。。。。。。

使用特权

评论回复
地板
戈卫东| | 2016-9-30 23:08 | 只看该作者
太有才了你。。。。

使用特权

评论回复
5
coslight| | 2016-10-8 08:13 | 只看该作者
我以为又出现一个新的

使用特权

评论回复
6
mintspring| | 2016-10-8 19:52 | 只看该作者
还真是漏了个F啊,有意思。好几个人以为是新货呢。

使用特权

评论回复
7
Thethree| | 2016-10-10 21:42 | 只看该作者
以前玩U盘和 sd卡的时候用过fat文件系统

使用特权

评论回复
8
wahahaheihei|  楼主 | 2016-10-11 14:18 | 只看该作者
单片机中用这个最大的作用就是可以兼容其他系统的文件形式。

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

216

主题

3027

帖子

12

粉丝