summaryrefslogtreecommitdiff
path: root/src/device/usbd.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-07-16 00:44:09 +0700
committerhathach <[email protected]>2020-07-16 00:44:09 +0700
commit706413f7510a78e262cf3cb398256e06fadbd500 (patch)
tree74a1ffa8ce636ef970316a4c70e4bf945bb61d42 /src/device/usbd.h
parente1b3fe81c41d67ed033841a758c7e3b4d217a52b (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.h')
-rw-r--r--src/device/usbd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h
index e9b82747a..d9facf719 100644
--- a/src/device/usbd.h
+++ b/src/device/usbd.h
@@ -53,6 +53,9 @@ bool tud_task_event_ready(void);
// Interrupt handler, name alias to DCD
#define tud_int_handler dcd_int_handler
+// Get current bus speed
+tusb_speed_t tud_speed_get(void);
+
// Check if device is connected and configured
bool tud_mounted(void);