Skip to content

Commit c4a0497

Browse files
committed
USBHOST : TARGET_STM small speed device not supported on hub
add warn small speed device are connected on hub
1 parent fdde910 commit c4a0497

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

features/unsupported/USBHost/USBHost/TARGET_STM/USBEndpoint_STM.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ void USBEndpoint::setDeviceAddress(uint8_t addr)
7474
uint8_t hcd_speed = HCD_SPEED_FULL;
7575
/* fix me : small speed device with hub not supported
7676
if (this->speed) hcd_speed = HCD_SPEED_LOW; */
77+
if (this->speed) {
78+
USB_WARN("small speed device on hub not supported");
79+
}
7780
MBED_ASSERT(HAL_HCD_HC_Init((HCD_HandleTypeDef*)hced->hhcd,hced->ch_num, address, addr, hcd_speed, type, size)!=HAL_BUSY);
7881
this->device_address = addr;
7982

0 commit comments

Comments
 (0)