summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2021-04-26 21:04:57 +0700
committerGitHub <[email protected]>2021-04-26 21:04:57 +0700
commit684fba315210fe35233283dac2af07ccae48e92a (patch)
treed4147812e360743e8ca2aff384286fd33f2e6227 /src/device
parentd8fd4352a3e6c621c22e6789243a8634ed134acb (diff)
parent1be9f3bcfa6f1bca8c4cd978177ac8658219e082 (diff)
Merge pull request #808 from hathach/lpc55-port1-hs
Lpc55 port1 hs
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 8a3d8ec2f..2853b619b 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -302,6 +302,8 @@ static char const* const _tusb_std_request_str[] =
"Synch Frame"
};
+static char const* const _tusb_speed_str[] = { "Full", "Low", "High" };
+
// for usbd_control to print the name of control complete driver
void usbd_driver_print_control_complete_name(usbd_control_xfer_cb_t callback)
{
@@ -464,7 +466,7 @@ void tud_task (void)
switch ( event.event_id )
{
case DCD_EVENT_BUS_RESET:
- TU_LOG2("\r\n");
+ TU_LOG2(": %s Speed\r\n", _tusb_speed_str[event.bus_reset.speed]);
usbd_reset(event.rhport);
_usbd_dev.speed = event.bus_reset.speed;
break;