/* Initialize DPM (port power role, PWR_IF, CAD and PE Init procedures)  */
USBPD_StatusTypeDef USBPD_DPM_UserInit(void)
/* Initialize DPM (port power role, PWR_IF, CAD and PE Init procedures)  */
USBPD_StatusTypeDef USBPD_DPM_UserInit(void)
{
  USBPD_PWR_IF_Init();
  osMessageQDef(MsgBox, DPM_BOX_MESSAGES_MAX, uint32_t);
  DPMMsgBox = osMessageCreate(osMessageQ(MsgBox), NULL);
  osThreadDef(DPM, USBPD_DPM_UserExecute, osPriorityLow, 0, 120);
  if(NULL == osThreadCreate(osThread(DPM), &DPMMsgBox))
  {
    return USBPD_ERROR;
  }
  return USBPD_OK;
}