summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJerzy Kasenberg <[email protected]>2020-09-14 10:22:54 +0200
committerJerzy Kasenberg <[email protected]>2020-09-28 08:41:17 +0200
commit6b5233096978305f1d6a87ef83393ba50e8b0bd2 (patch)
treecbd3816876d7634c45a424003808f07825e849e8 /src
parent759d5305062e5261d580fa64e40fc755db34c436 (diff)
synopsys: Remove compilation warning in dcd_edpt_close
dcd_edpt_close() no longer modifies FIFO distribution. Code that that was commented out is removed along with variables that are no longer used. FIFO distribution among endpoints is handled upfront and does not need to be modified in open and close endpoint functions.
Diffstat (limited to 'src')
-rw-r--r--src/portable/st/synopsys/dcd_synopsys.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/portable/st/synopsys/dcd_synopsys.c b/src/portable/st/synopsys/dcd_synopsys.c
index 213a3ad98..0980720d6 100644
--- a/src/portable/st/synopsys/dcd_synopsys.c
+++ b/src/portable/st/synopsys/dcd_synopsys.c
@@ -809,20 +809,7 @@ static void dcd_edpt_disable (uint8_t rhport, uint8_t ep_addr, bool stall)
*/
void dcd_edpt_close (uint8_t rhport, uint8_t ep_addr)
{
- USB_OTG_GlobalTypeDef * usb_otg = GLOBAL_BASE(rhport);
-
- uint8_t const epnum = tu_edpt_number(ep_addr);
- uint8_t const dir = tu_edpt_dir(ep_addr);
-
dcd_edpt_disable(rhport, ep_addr, false);
-// if (dir == TUSB_DIR_IN)
-// {
-// uint16_t const fifo_size = (usb_otg->DIEPTXF[epnum - 1] & USB_OTG_DIEPTXF_INEPTXFD_Msk) >> USB_OTG_DIEPTXF_INEPTXFD_Pos;
-// uint16_t const fifo_start = (usb_otg->DIEPTXF[epnum - 1] & USB_OTG_DIEPTXF_INEPTXSA_Msk) >> USB_OTG_DIEPTXF_INEPTXSA_Pos;
-// // For now only endpoint that has FIFO at the end of FIFO memory can be closed without fuss.
-// TU_ASSERT(fifo_start + fifo_size == _allocated_fifo_words,);
-// _allocated_fifo_words -= fifo_size;
-// }
}
void dcd_edpt_stall (uint8_t rhport, uint8_t ep_addr)