rename board specific macro for example
- BOARD_DEVICE/HOST_RHPORT_NUM to BOARD_TUD/H_RHPORT - BOARD_DEVICE/HOST_RHPORT_SPEED to BOARD_TUD/H_MAX_SPEED
This commit is contained in:
@@ -122,7 +122,7 @@ void board_init(void)
|
||||
UartHandle.Init.OverSampling = UART_OVERSAMPLING_16;
|
||||
HAL_UART_Init(&UartHandle);
|
||||
|
||||
#if BOARD_DEVICE_RHPORT_NUM == 0
|
||||
#if BOARD_TUD_RHPORT == 0
|
||||
// Despite being call USB2_OTG
|
||||
// OTG_FS is marked as RHPort0 by TinyUSB to be consistent across stm32 port
|
||||
// PA9 VUSB, PA10 ID, PA11 DM, PA12 DP
|
||||
@@ -166,7 +166,7 @@ void board_init(void)
|
||||
USB_OTG_FS->GOTGCTL |= USB_OTG_GOTGCTL_BVALOVAL;
|
||||
#endif // vbus sense
|
||||
|
||||
#elif BOARD_DEVICE_RHPORT_NUM == 1
|
||||
#elif BOARD_TUD_RHPORT == 1
|
||||
// Despite being call USB2_OTG
|
||||
// OTG_HS is marked as RHPort1 by TinyUSB to be consistent across stm32 port
|
||||
|
||||
|
||||
Reference in New Issue
Block a user