summaryrefslogtreecommitdiff
path: root/src/device/dcd.h
diff options
context:
space:
mode:
authorReinhard Panhuber <[email protected]>2020-07-27 21:03:20 +0200
committerReinhard Panhuber <[email protected]>2020-07-27 21:03:20 +0200
commit01903a4a6d0eb8a7260029133cc94a62d969092e (patch)
tree5124a7e69a3db3dcbeed16fe81596c38108569b0 /src/device/dcd.h
parent5e3f90cd6eabbeb664d523184338d7f4df46cef4 (diff)
Implement dynamic reallocation of RX and TX fifos for EP0.
Tested with EP0 size 8/16/32/64.
Diffstat (limited to 'src/device/dcd.h')
-rw-r--r--src/device/dcd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h
index a4635346b..ff05f26cc 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
//--------------------------------------------------------------------+