disk_initialize

The disk_initialize function initializes the disk drive.

DSTATUS disk_initialize (void)

Return Values

The disk status is returned in combination of following flags.

STA_NOINIT
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.
STA_NODISK
Indicates that no medium in the drive. This is always cleared on fixed disk drive.

Description

The disk_initialize function initializes the physical drive. When the function succeeded, STA_NOINIT flag in the return value is cleard.

Return