Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

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:

  1. Call USBD_StorageRefreshTaskHandler() function defined in the µC/FS storage layer. This function implements the removable media insertion/removable detection..
  2. 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.
  • No labels