add VBUS drive via MFX for h743 eval, but does not seems to work yet

This commit is contained in:
hathach
2024-10-18 18:33:50 +07:00
parent b5a4f18879
commit 42b6f30eda
13 changed files with 191 additions and 22 deletions

View File

@@ -236,7 +236,12 @@ void board_init(void) {
HAL_PWREx_EnableUSBVoltageDetector();
// For waveshare openh743 ULPI PHY reset walkaround
board_stm32h7_post_init();
board_init2();
#if CFG_TUH_ENABLED && defined(BOARD_VBUS_DRIVE)
BOARD_VBUS_DRIVE(BOARD_TUH_RHPORT, 1);
#endif
}
//--------------------------------------------------------------------+