aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2019-12-21 16:44:32 +0100
committerHarald Welte <laforge@osmocom.org>2019-12-21 16:44:32 +0100
commit1bd94ad07d0afbfe16565efdf7b9fcfc69942fc1 (patch)
treec76c89fce3cb30433a32334bb95d36cdbbb01f6f
parent591b1a82b48bf3c136ced21556d510066acd24d1 (diff)
e1: change ISO EP size to 512
256 is too small, as one packet is scheduled (max!) per 1ms frame, resulting in 256kByte/s, which is just not enough for an E1 signal that runs off a clock that might be faster than the host PC. The SAM4S doesn't seem to support odd wMaxPacketSize (I tried 388 but failed) and hence we set it to 512. This means we will only transmit data in an average ot 50% of the frames where we get scheduled to transfer.
-rw-r--r--sam/applications/sam_e1/sam4sd32c_sam4s_xplained_pro/conf_usb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sam/applications/sam_e1/sam4sd32c_sam4s_xplained_pro/conf_usb.h b/sam/applications/sam_e1/sam4sd32c_sam4s_xplained_pro/conf_usb.h
index d2efa366..fa6dc475 100644
--- a/sam/applications/sam_e1/sam4sd32c_sam4s_xplained_pro/conf_usb.h
+++ b/sam/applications/sam_e1/sam4sd32c_sam4s_xplained_pro/conf_usb.h
@@ -96,7 +96,7 @@
#define UDI_VENDOR_SETUP_OUT_RECEIVED() false
-#define UDI_VENDOR_EPS_SIZE_ISO_FS 256
+#define UDI_VENDOR_EPS_SIZE_ISO_FS 512
#define UDI_VENDOR_EPS_SIZE_INT_FS 0
#define UDI_VENDOR_EPS_SIZE_BULK_FS 0
#define UDI_VENDOR_IFACE_NUMBER 2