On Time RTOS-32 Documentation
Welcome
RTTarget-32
RTKernel-32
RTFiles-32
RTFiles-32 Programming Manual
Introduction
The FAT File System Structure
The ISO 9660 File System Structure
The exFAT File System Structure
RTFiles-32 in Embedded Applications
RTFiles-32 APIs
Configuring RTFiles-32
Demo Programs
Advanced Topics
Optimizing for Best Throughput
Optimizing for Best Data Security
Real-Time File I/O
Using RTFiles-32 with RTTarget-32
Win32 API Emulation with RTTarget-32
Using RTFiles-32 with RTKernel-32
Custom Disk Device Drivers
Custom Flash MTD Drivers
Porting RTFiles-32 to other Platforms
Compile Time Options, Rtfcfg.h
The System Driver
Source Code Structure
Compiling RTFiles-32
RTFiles-32 Reference Manual
RTIP-32
RTPEG-32
RTUSB-32
|
Source Code Structure
RTFiles-32 comes with six header files in directory Include:
Filename |
Depends on |
Comments |
Rtfcfg.h |
- |
Defines basic data types and compile time options. |
Rtfiles.prv |
- |
Declares RTFiles-32 internal functions and data structures. The portable file system as well as the drivers need this file. |
Rtfiles.drv |
- |
Declares data structures required by the device drivers. |
Rtfiles.h |
Rtfcfg.h |
Defines the RTFiles-32 API. Applications need to include this file. |
Rtfsys.h |
Rtfiles.h |
Defines the RTFiles-32 system driver API. |
Rtfex.h |
Rtfiles.h |
API of the C exception handling library. The core file system and some of the drivers use exceptions internally. |
The file system sources are located in directory Source\Rtf32:
Filename |
Comments |
Rtfiles.c |
The core file system. |
Buffers.c |
Sector buffer cache management, included by Rtfiles.c. |
Lowio.c |
Low-level I/O functions, included by Rtfiles.c. |
Rawio.c |
RTFRaw... functions, included by Rtfiles.c. |
Rtfcd.c |
ISO 9660 file system specific code, included by Rtfiles.c. |
Rtfexfat.c |
exFAT file system specific code, included by Rtfiles.c. |
Rtfbs.c |
Boot sector management (RTFCreateMasterBootRecord, RTFSplitPartition, RTFCreateBootSector). |
Rtfdump.c |
Function RTFDumpFileTable. |
Format.c |
Function RTFFormat. |
Formatx.c |
Function RTFFormatExFAT. |
Exfatupper.c |
Upper case table used by function RTFFormatExFAT; included by Formatx.c. |
Rtfgpt.c |
Functions to create GPT partition tables. |
Rtfgptcrc.c |
Function to calculate CRCs for GPT partition tables. |
Cp437.c |
Function RTFSetCodePageANSI. |
Cp1252.c |
Function RTFSetCodePageOEM. |
Cputf8.c |
Function RTFSetCodePageUTF8. |
Ututf8.c |
Code to calculate upper case of Unicode characters. |
Ut1252.c |
Code page 1252 Unicode mapping table. |
Ut437.c |
Code page 437 Unicode mapping table. |
Up437.c |
Upper case table for OEM code page 437. |
Rtfex.c |
C exception handling used internally by RTFiles-32 and some of its drivers. |
Rtfw32.c |
Win32 file I/O API emulation. Only used with On Time RTOS-32. |
Rttw32.c |
RTTarget-32 installable file system driver. Only used with On Time RTOS-32. |
The device drivers are located in directory Driver\Rtf32. The following files in directory Driver\Rtf32 comprise the drivers:
Filename |
Comments |
Drvdoc.c |
M-System DiskOnChip 2000 |
Drvflash.c |
Flash disk driver |
Drvflpy.c |
Floppy disk driver |
Drvide.c |
IDE/ATAPI driver |
Drvahci.c |
AHCI driver |
Drvsd.c |
SD Card driver |
Drvnull.c |
NULL device driver |
Drvram.c |
RAM disk driver |
Drveram.c |
Extended RAM disk driver |
Drvsram.c |
SRAM (PCMCIA) driver |
Drvusb.c |
USB disk driver (RTUSB-32 required) |
Mtdcfi2.c |
MTD driver for the flash disk driver |
Some of these driver may contain platform and hardware specific code. The M-Systems driver requires M-Systems device driver development kit available from M-Systems/SanDisk.
Porting RTFiles-32 to other Platforms
The System Driver
Compiling RTFiles-32
|