![]() |
Home |
|
Custom Flash MTD DriversThe linear flash disk driver does not know how to actually handle flash memory. Rather, it interfaces to an MTD (Memory Technology) driver to manipulate the flash. Thus, the same flash disk driver can support many different types of flash memory through different MTDs. MTDs have a similar structure as RTFiles-32 device drivers. They consist of structure RTF_MTD with function pointers to the driver's various entrypoints. To implement an MTD driver structure, you must:
Please refer to the source code of the supplied drivers for examples. File Driver\Rtf32\Mtdfile.c contains a simple MTD driver simulating flash memory in a memory mapped file under Windows. The complete reference of the MTD device driver API is included in the RTFiles-32 Reference Manual.
|