USBHOST : TARGET_STM small speed device not supported on hub

add warn small speed device are connected on hub
pull/4231/head
Michel Jaouen 2017-04-26 16:43:44 +02:00
parent fdde91037f
commit c4a049750b
1 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,9 @@ void USBEndpoint::setDeviceAddress(uint8_t addr)
uint8_t hcd_speed = HCD_SPEED_FULL;
/* fix me : small speed device with hub not supported
if (this->speed) hcd_speed = HCD_SPEED_LOW; */
if (this->speed) {
USB_WARN("small speed device on hub not supported");
}
MBED_ASSERT(HAL_HCD_HC_Init((HCD_HandleTypeDef*)hced->hhcd,hced->ch_num, address, addr, hcd_speed, type, size)!=HAL_BUSY);
this->device_address = addr;