AnsweredAssumed Answered

Is USB_OTG_BSP_Init "eval-board specific"/non-essential?

Question asked by cuneo.john on Apr 15, 2014
Latest reply on Apr 17, 2014 by cuneo.john
When I was trying to use the official USB host library I came by this func:

USB_OTG_BSP_Init

And it has some of these components:
/* Configure SOF Pin */
  GPIO_InitStructure.GPIO_Pin = HOST_OVRCURR_LINE;
  GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
  GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU;
  GPIO_Init(HOST_OVRCURR_PORT, &GPIO_InitStructure);
 
  /* Connect Button EXTI Line to Button GPIO Pin */
  GPIO_EXTILineConfig(HOST_OVRCURR_PORT_SOURCE, HOST_OVRCURR_PIN_SOURCE);  
 
  /* Configure Button EXTI line */
  EXTI_InitStructure.EXTI_Line = HOST_OVRCURR_EXTI_LINE;
  EXTI_InitStructure.EXTI_Mode = EXTI_Mode_Interrupt;  
  EXTI_InitStructure.EXTI_Trigger = EXTI_Trigger_Falling;
  EXTI_InitStructure.EXTI_LineCmd = ENABLE;
  EXTI_Init(&EXTI_InitStructure);
   USB_OTG_BSP_TimeInit();

Are the above mentioned configurations necessary? And by that I'm referring to
/* Configure SOF Pin */
  /* Connect Button EXTI Line to Button GPIO Pin */
  /* Configure Button EXTI line */
those parts.

And by necessary I mean do I have to have them, even if I'm not using the official evaluation board from ST at all? I don't want to have any button involved. My guess is no, but it may be a good idea to utilize the same design/setup as ST did.

Any help would be greatly appreciated.

Outcomes