diff options
| author | hathach <[email protected]> | 2020-10-06 22:32:22 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-10-06 22:32:22 +0700 |
| commit | d41248900bedd705df2ccd5dfc53932cdb0839bb (patch) | |
| tree | 7c6db7a1041b3325b8e508c37544b5de3c393f59 /src/device/dcd.h | |
| parent | 0686bd9369e8a8f35bdcd505e829dbf82ac011cd (diff) | |
| parent | 2050dc0dc743294b07d0534278027da689bc6813 (diff) | |
Merge branch 'uac2' of https://github.com/PanRe/tinyusb into PanRe-uac2
Diffstat (limited to 'src/device/dcd.h')
| -rw-r--r-- | src/device/dcd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h index 776f782b8..c00e3c06d 100644 --- a/src/device/dcd.h +++ b/src/device/dcd.h @@ -115,6 +115,10 @@ void dcd_connect(uint8_t rhport) TU_ATTR_WEAK; // Disconnect by disabling internal pull-up resistor on D+/D- void dcd_disconnect(uint8_t rhport) TU_ATTR_WEAK; +// Invoked when a set configuration request was received +// Helper to allow for dynamic EP buffer allocation according to configuration descriptor +TU_ATTR_WEAK bool dcd_alloc_mem_for_conf(uint8_t rhport, tusb_desc_configuration_t const * desc_cfg); + //--------------------------------------------------------------------+ // Endpoint API //--------------------------------------------------------------------+ |
