diff options
| author | Jacob Potter <[email protected]> | 2021-01-03 15:12:02 -0700 |
|---|---|---|
| committer | Jacob Potter <[email protected]> | 2021-01-03 15:12:02 -0700 |
| commit | 57058e33fceecf16161c37f2d9796934b392a2ea (patch) | |
| tree | 8c2cb3133128fc2aaaf7726ca87ffc2c028798ce /src/device/usbd.h | |
| parent | 226efdcec0d880feb4af3995129b85fae9b8ddb8 (diff) | |
| parent | e79a7b91526dfb19bfa764f505c87740488849dc (diff) | |
Merge branch 'master' into ncm
Diffstat (limited to 'src/device/usbd.h')
| -rw-r--r-- | src/device/usbd.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h index c547ceeee..0a8d9682b 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -41,8 +41,6 @@ extern "C" { //--------------------------------------------------------------------+ // Init device stack -// Note: when using with RTOS, this should be called after scheduler/kernel is started. -// Otherwise it could cause kernel issue since USB IRQ handler does use RTOS queue API. bool tud_init (void); // Task function should be called in main/rtos loop @@ -58,6 +56,9 @@ extern void dcd_int_handler(uint8_t rhport); // Get current bus speed tusb_speed_t tud_speed_get(void); +// Check if device is connected (may not mounted/configured yet) +bool tud_connected(void); + // Check if device is connected and configured bool tud_mounted(void); @@ -127,11 +128,7 @@ TU_ATTR_WEAK void tud_suspend_cb(bool remote_wakeup_en); TU_ATTR_WEAK void tud_resume_cb(void); // Invoked when received control request with VENDOR TYPE -TU_ATTR_WEAK bool tud_vendor_control_request_cb(uint8_t rhport, tusb_control_request_t const * request); - -// Invoked when vendor control request is complete -TU_ATTR_WEAK bool tud_vendor_control_complete_cb(uint8_t rhport, tusb_control_request_t const * request); - +TU_ATTR_WEAK bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t const * request); //--------------------------------------------------------------------+ // Binary Device Object Store (BOS) Descriptor Templates |
