µC/FS expects that any call to a function that accesses a removable device may fail, since the device may be removed, powered off or suddenly unresponsive. If µC/FS detects such an event, the device will need to be refreshed or closed and re-opened. FSDev_Refresh()
refreshes a device:
Code Block | ||
---|---|---|
| ||
chngd = FSDev_Refresh((CPU_CHAR *)"ide:0:", /* <-- device name */
(FS_ERR *)&err); /* <-- return error */ |
There are several cases to consider:
...