AnsweredAssumed Answered

USB OTG HNP and SRP Problem in STM32xxx

Question asked by Shail Shah on Aug 2, 2017
Latest reply on Aug 7, 2017 by Shail Shah

Hello all,

 

In USB OTG Driver SRP request after that USB_OTG_HandleSessionRequest_ISR invoking.

What Need to be added to inform upper layer USB_OTG_HandleSessionRequest_ISR as per HAL Library?.

 

  if (IsDeviceMode(&otgfs_dev1) && (otg_ctl.b.bsesvld))  
  {  
      /* inform upper layer here */  
      /***************************/  

      / ??????????????????/
  }  
  else if (otg_ctl.b.asesvld)  
  {  
      /* inform upper layer here */  
      /***************************/  

      / ??????????????????/
  }  
  

Simliar way in HNP request after that USB_OTG_HandleConnectorIDStatusChange_ISR invoking

What Need to be added to inform upper layer?

 

Thanks and Regards,

Shail Shah

Outcomes