void USBH_USR_DeviceSpeedDetected(uint8_t DeviceSpeed)
{
if(DeviceSpeed == HPRT0_PRTSPD_HIGH_SPEED)
{
LCD_UsrLog((void *)MSG_DEV_HIGHSPEED);
}
else if(DeviceSpeed == HPRT0_PRTSPD_FULL_SPEED)
{
LCD_UsrLog((void *)MSG_DEV_FULLSPEED);
}
else if(DeviceSpeed == HPRT0_PRTSPD_LOW_SPEED)
{
LCD_UsrLog((void *)MSG_DEV_LOWSPEED);
}
else
{
LCD_UsrLog((void *)MSG_DEV_ERROR);
}
}
插上U盘,我总是在低速那里运行,枚举不应该是全速吗?这是为什么,现在枚举不成功,我用的最新的ST库。 |