First of all, if you haven’t downloaded Chan’s source code, you should do this first. You can get from him at this link:
http://elm-chan.org/fsw/ff/00index_e.html
When you unzip this file, use the default directories and you will end up with a directory structure like this:
Chan has included examples for a variety of processors. The basic set of routines are found in the src subdirectory. As he notes in his readme file, the files included here are:
File | Description |
ff.h | Common include file for FatFs and application module. |
ff.c | FatFs Module |
tff.h | Common include file for Tiny-FatFs and application module. |
tff.c | Tiny-FatFs module. |
diskio.h | Common include file for (Tiny-)FatFs and disk I/O module. |
diskio.c | Skeleton of low level disk I/O module. |
integer.h | Alternative type definitions for integer variables. |
Chan also states that
chan wrote ...
the
low level disk I/O module is not included in this archive because the
FatFs/Tiny-FatFs module is only a generic file system layer and not
dependent on any specific storage device. You have to provide a low
level disk I/O module that is written to control your storage device.
That is the intent behind this tutorial – to show you how to write the low level disk I/O module so the file system layer can work properly.
No comments:
Post a Comment