Download Manual
Transcript
ERTFS User Guide
To support removable trueide media you must modify your media change interrupt service routine to call this function when a
card has been removed.
Drive number of the card that was removed must be passed in.
The drive number must be the same as the value assigned to the pdr->driveno in apiinit.c.
Note: The DRIVE_FLAGS_REMOVABLE flag must be set in apiinit.c for removable media. To do this, OR in DRIVE_FLAGS_
REMOVABLE to the drive flags field.
pdr->drive_flags |= DRIVE_FLAGS_REMOVABLE;
Example:
#define TRUEIDE_DRIVEID 2 — C:
void trueide_removal_interrupt(void)
{
trueide_report_card_removed(TRUEIDE_DRIVEID);
}
Section 25: Supporting Removable TRUE-IDE Devices
54