USBD_MSC_OS_Init

Description

Initialize MSC OS interface.

Files

usbd_msc_os.h / usbd_msc_os.c

Prototype

void  USBD_MSC_OS_Init (USBD_ERR  *p_err)


Arguments

p_err

Pointer to variable that will receive the return error code from this function.

USBD_ERR_NONE
USBD_ERR_OS_FAIL

Returned Value

None.

Callers

Mass Storage Class.

Implementation Guidelines

Initialization of the MSC OS interface must include creating:

  1. Two semaphores, one for MSC communication and one for enumeration.
  2. A MSC task to handle the MSC protocol.
  3. A Refresh task if µC/FS storage layer is used with removable media.