USBD_MSC_OS_RefreshTask
Description
Detect the insertion or removal of removable media. Defined only if the µC/FS storage layer is used.
Files
usbd_msc_os.c
Prototype
static void USBD_MSC_OS_RefreshTask (void *p_arg);
Arguments
p_arg
Pointer to task initialization argument.
Callers
This is a task.
Implementation Guidelines
The task body is usually implemented as an infinite loop. The task should perform the following steps:
- Call
USBD_StorageRefreshTaskHandler()
function defined in the µC/FS storage layer. This function implements the removable media insertion/removable detection.. - Delay for a certain period of time. This delay is configurable by you through the configuration constant,
USBD_MSC_CFG_DEV_POLL_DLY_mS
. Refer to MSC General Configuration for more details about this constant.