Esempio n. 1
0
void OTG_FS_IRQHandler(void)
{
  uint32_t icc = DWT->CYCCNT;
  USBH_OTG_ISR_Handler(&USB_OTG_FS_Core);
  icc = DWT->CYCCNT - icc;
  if (icc_cnt > 5000 && icc > icc_max) icc_max = icc;
  icc_tot = icc_tot + icc;
  icc_cnt++;
}
Esempio n. 2
0
/**
 * @brief  This function handles OTG_HS Handler.
 * @param  None
 * @retval None
 */
void OTG_HS_irq(void)
{
     if (USB_OTG_IsHostMode(&USB_OTG_dev)) /* ensure that we are in device mode */
	{
		USBH_OTG_ISR_Handler(&USB_OTG_dev);
	}
	else
	{
		USBD_OTG_ISR_Handler(&USB_OTG_dev);
	}
}
/**
  * @brief  This function handles OTG_HS Handler.
  * @param  None
  * @retval None
  */
void OTG_HS_IRQHandler(void)
{
  if(demo_mode == 0)
  {
    USBH_OTG_ISR_Handler (&USB_OTG_Core);
  }
  else
  {
    USBD_OTG_ISR_Handler (&USB_OTG_dev);
  }
}
void OTG_FS_IRQHandler(void)
{
	//USBD_OTG_ISR_Handler (&USB_OTG_dev);
	if (USB_OTG_IsHostMode(&USB_OTG_Core)) /* ensure that we are in device mode */
	{
		USBH_OTG_ISR_Handler(&USB_OTG_Core);
	}
	else
	{
		USBD_OTG_ISR_Handler(&USB_OTG_Core);
	}
}
Esempio n. 5
0
void OTG_FS_IRQHandler(void)
#endif
{
    if (USB_OTG_IsHostMode(&USB_OTG_dev)) {
        // host mode
#ifdef USE_HOST_MODE
        USBH_OTG_ISR_Handler(&USB_OTG_dev);
#endif
        //STM32_USBO_OTG_ISR_Handler(&USB_OTG_dev); // USE_OTG_MODE
    } else {
        // device mode
#ifdef USE_DEVICE_MODE
        USBD_OTG_ISR_Handler(&USB_OTG_dev);
#endif
    }
}
Esempio n. 6
0
void OTG_HS_IRQHandler(void)
#endif
{
  USBH_OTG_ISR_Handler(&USB_OTG_Core_dev);
}
Esempio n. 7
0
  * @retval None
  */
void OTG_FS_IRQHandler(void)
{
Esempio n. 8
0
void OTG_FS_IRQHandler(void) {
#else
void OTG_HS_IRQHandler(void) {	
#endif
	USBH_OTG_ISR_Handler(&USB_OTG_MSC_Core);
}