You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am confused by this code from the STM32H7/family.c: https://github.com/hathach/tinyusb/blob/master/hw/bsp/stm32h7/family.c#L146
#if OTG_FS_VBUS_SENSE
/* Configure VBUS Pin */
GPIO_InitStruct.Pin = GPIO_PIN_9;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
The STM32H7x family reference manual states that VBUS should be considered an analog input:
STM differentiates between analog and digital inputs. It seems the code in the above-referenced stm32h7/family.c configures VBUS as a digital input. Is this a mistake?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am confused by this code from the STM32H7/family.c:
https://github.com/hathach/tinyusb/blob/master/hw/bsp/stm32h7/family.c#L146
#if OTG_FS_VBUS_SENSE
/* Configure VBUS Pin */
GPIO_InitStruct.Pin = GPIO_PIN_9;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
The STM32H7x family reference manual states that VBUS should be considered an analog input:
STM differentiates between analog and digital inputs. It seems the code in the above-referenced stm32h7/family.c configures VBUS as a digital input. Is this a mistake?
Thanks!
-Brian
Beta Was this translation helpful? Give feedback.
All reactions