/* This function makes USBD module to be ready to use.  */
void USBD_Open(const S_USBD_INFO_T *param, CLASS_REQ pfnClassReq, SET_INTERFACE_REQ pfnSetInterface)
/* This function makes USBD module to be ready to use.  */
void USBD_Open(const S_USBD_INFO_T *param, CLASS_REQ pfnClassReq, SET_INTERFACE_REQ pfnSetInterface)
{
    g_usbd_sInfo = param;
    g_usbd_pfnClassRequest = pfnClassReq;
    g_usbd_pfnSetInterface = pfnSetInterface;
    g_usbd_CtrlMaxPktSize = g_usbd_sInfo->gu8DevDesc[7];
    USBD->ATTR = 0x6D0ul;
    USBD_SET_SE0();
}