summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJie Feng <[email protected]>2026-06-18 17:28:49 +0800
committerJie Feng <[email protected]>2026-07-19 20:38:54 +0800
commit9418aba918d7c4107026c894e863d9ef0ec5db81 (patch)
tree67ba719436a5e8eeae39b25565bee226cb7d210f /src
parentced3d0fa17ffc76e40b581fbcbf8508894ff0e70 (diff)
misc fixes
Diffstat (limited to 'src')
-rw-r--r--src/portable/mentor/musb/dcd_musb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/portable/mentor/musb/dcd_musb.c b/src/portable/mentor/musb/dcd_musb.c
index 69b7ef0de..7d79a089a 100644
--- a/src/portable/mentor/musb/dcd_musb.c
+++ b/src/portable/mentor/musb/dcd_musb.c
@@ -235,7 +235,10 @@ TU_ATTR_ALWAYS_INLINE static inline bool hwfifo_config(musb_regs_t* musb, unsign
(void) mps;
#if defined(TUP_USBIP_MUSB_PY32)
- (void) musb; (void) epnum; (void) is_rx; (void) double_packet;
+ (void) musb; (void) epnum; (void) is_rx; (void) mps; (void) double_packet;
+ // Puya FIFO sizes: EP0 = 64 B, EP1 = 512 B, EP2..4 = 128 B, EP5 = 64 B, shared between IN and OUT.
+ //static const uint16_t py32_fifo_size[] = { 64, 512, 128, 128, 128, 64 };
+ //TU_VERIFY(epnum < TU_ARRAY_SIZE(py32_fifo_size) && mps <= py32_fifo_size[epnum]);
#elif defined(TUP_USBIP_MUSB_ADI)
// AnalogDevice FIFO sizes: EP1..7 = 512 B, EP8..9 = 2048 B, EP10..11 = 4096 B.
// DPB requires FIFO >= 2 * MPS. For HS bulk (MPS=512) only EP >= 8 qualifies.