The disk_initialize function initializes the disk drive.
DSTATUS disk_initialize (void)
The disk status is returned in combination of following flags.
- Indicates that the disk drive has not been initialized. This flag is set on: system reset, disk removal and disk_initialize function failed, and cleared on: disk_initialize function succeeded.
- Indicates that no medium in the drive. This is always cleared on fixed disk drive.
The disk_initialize function initializes the physical drive. When the function succeeded, STA_NOINIT flag in the return value is cleard.