diff options
| author | hathach <[email protected]> | 2020-07-16 00:44:09 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-07-16 00:44:09 +0700 |
| commit | 706413f7510a78e262cf3cb398256e06fadbd500 (patch) | |
| tree | 74a1ffa8ce636ef970316a4c70e4bf945bb61d42 /src/device/usbd.c | |
| parent | e1b3fe81c41d67ed033841a758c7e3b4d217a52b (diff) | |
add tud_speed_get()
- define both fs and hs configuration descriptor
- rename CFG_TUD_CDC_EPSIZE to CFG_TUD_CDC_EP_BUFSIZE with default size of 64 for FS, and 512 for HS
Diffstat (limited to 'src/device/usbd.c')
| -rw-r--r-- | src/device/usbd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index b607f5939..f59b19427 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -294,6 +294,11 @@ void usbd_driver_print_control_complete_name(bool (*control_complete) (uint8_t, //--------------------------------------------------------------------+ // Application API //--------------------------------------------------------------------+ +tusb_speed_t tud_speed_get(void) +{ + return (tusb_speed_t) _usbd_dev.speed; +} + bool tud_mounted(void) { return _usbd_dev.configured; |
