summaryrefslogtreecommitdiff
path: root/src/device/usbd.c
diff options
context:
space:
mode:
authorReinhard Panhuber <[email protected]>2020-10-09 19:50:05 +0200
committerReinhard Panhuber <[email protected]>2020-10-09 19:50:05 +0200
commit032e84c9befa0797f6a6faf86fbfdff13ec77bbe (patch)
treeb7e6fabfae12676f047c0d876423378852db8405 /src/device/usbd.c
parentf700c08aeddd14ab5ae0a02a9eff330c5ae99dea (diff)
Revert dcd_alloc_mem_for_conf() but keep changes from @kasjer for ISO EP
Add tud_audio_set_itf_close_EP_cb()
Diffstat (limited to 'src/device/usbd.c')
-rw-r--r--src/device/usbd.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index d6d77dff2..90edc3dde 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -786,9 +786,6 @@ static bool process_set_config(uint8_t rhport, uint8_t cfg_num)
tusb_desc_configuration_t const * desc_cfg = (tusb_desc_configuration_t const *) tud_descriptor_configuration_cb(cfg_num-1); // index is cfg_num-1
TU_ASSERT(desc_cfg != NULL && desc_cfg->bDescriptorType == TUSB_DESC_CONFIGURATION);
- // Allow for dynamic allocation of EP buffer for current configuration - only one configuration may be active according to USB specification
- if (dcd_alloc_mem_for_conf) TU_ASSERT(dcd_alloc_mem_for_conf(rhport, desc_cfg));
-
// Parse configuration descriptor
_usbd_dev.remote_wakeup_support = (desc_cfg->bmAttributes & TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP) ? 1 : 0;
_usbd_dev.self_powered = (desc_cfg->bmAttributes & TUSB_DESC_CONFIG_ATT_SELF_POWERED) ? 1 : 0;