The function UnInit de-initializes the FAT driver. The parameter mode specifies the de-initialization mode: | Mode | Description |
|---|
| DM_IO | De-initialize IO peripherals. | | DM_MEDIA | De-initialize the storage media. |
The function is part of the FAT Driver. The prototype is defined in the file File_Config.h. Developers must customize the function. The function is invoked called twice by the function funinit. First, with the argument DM_MEDIA; next, with the argument DM_IO. Use the function during run-time when the drive volume has to be disabled. For example, for reducing power consumption. Afterwards, call only the function finit for re-initializing the drive. |