Question
USB OTG HOST PA9 PIN
Posted on June 04, 2011 at 20:37
Hi:
I am trying to use USB OTG as a host. I have to enable PA9 pin which is the VBUS. I tried everything but could not get 5V only 3.3V. What I am missing?
Code:
GPIO_InitStructure.GPIO_Pin = HOST_POWERSW_VBUS;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_Init(HOST_POWERSW_PORT, &GPIO_InitStructure);
/* By Default, DISABLE is needed on output of the Power Switch */
GPIO_SetBits(HOST_POWERSW_PORT, HOST_POWERSW_VBUS);
Thanks,
Konstantin
