auto detect max rhport speed based on mcu
This commit is contained in:
		| @@ -45,15 +45,9 @@ | ||||
| #endif | ||||
|  | ||||
| // RHPort max operational speed can defined by board.mk | ||||
| // Default to Highspeed for MCU with internal HighSpeed PHY (can be port specific), otherwise FullSpeed | ||||
| // Default to max (auto) speed for MCU with internal HighSpeed PHY | ||||
| #ifndef BOARD_DEVICE_RHPORT_SPEED | ||||
|   #if TU_CHECK_MCU(OPT_MCU_LPC18XX, OPT_MCU_LPC43XX, OPT_MCU_MIMXRT10XX, OPT_MCU_NUC505) ||\ | ||||
|       TU_CHECK_MCU(OPT_MCU_CXD56, OPT_MCU_SAMX7X, OPT_MCU_BCM2711) ||\ | ||||
|       TU_CHECK_MCU(OPT_MCU_FT90X, OPT_MCU_FT93X) | ||||
|     #define BOARD_DEVICE_RHPORT_SPEED   OPT_MODE_HIGH_SPEED | ||||
|   #else | ||||
|     #define BOARD_DEVICE_RHPORT_SPEED   OPT_MODE_FULL_SPEED | ||||
|   #endif | ||||
|   #define BOARD_DEVICE_RHPORT_SPEED   OPT_MODE_DEFAULT_SPEED | ||||
| #endif | ||||
|  | ||||
| // Device mode with rhport and speed defined by board.mk | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach