summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-01-08 16:54:50 +0700
committerhathach <[email protected]>2021-01-08 16:54:50 +0700
commitcca27fc383a1caebf4f50c2aa27076422249aa3f (patch)
treefc918a449d3817b0c72662ea6bbbf7a4324dc2ab
parent201ea7ca6d9634c8187c5f58938f27c4dbe33564 (diff)
another rename
-rw-r--r--src/portable/st/synopsys/dcd_synopsys.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/portable/st/synopsys/dcd_synopsys.c b/src/portable/st/synopsys/dcd_synopsys.c
index f00df5d55..227c9ee61 100644
--- a/src/portable/st/synopsys/dcd_synopsys.c
+++ b/src/portable/st/synopsys/dcd_synopsys.c
@@ -165,14 +165,14 @@ static void update_grxfsiz(uint8_t rhport)
USB_OTG_GlobalTypeDef * usb_otg = GLOBAL_BASE(rhport);
// Determine largest EP size for RX FIFO
- uint16_t sz = 0;
+ uint16_t max_epsize = 0;
for (uint8_t epnum = 0; epnum < EP_MAX; epnum++)
{
- sz = tu_max16(sz, xfer_status[epnum][TUSB_DIR_OUT].max_size);
+ max_epsize = tu_max16(max_epsize, xfer_status[epnum][TUSB_DIR_OUT].max_size);
}
// Update size of RX FIFO
- usb_otg->GRXFSIZ = calc_rx_ff_size(sz);
+ usb_otg->GRXFSIZ = calc_rx_ff_size(max_epsize);
}
// Setup the control endpoint 0.