aboutsummaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-07-12 16:01:25 -0700
committerMartin Braun <martin.braun@ettus.com>2018-07-12 16:45:50 -0700
commit82aef3c8ddb96132ce5a9b23688d29f237093e55 (patch)
tree0164c4e093e448130cbba392f7f2d6e9751cdcff /firmware
parentdcd76b9e20b900d2da3ca8d6f32ad99c69e4e40f (diff)
downloaduhd-82aef3c8ddb96132ce5a9b23688d29f237093e55.tar.gz
uhd-82aef3c8ddb96132ce5a9b23688d29f237093e55.tar.bz2
uhd-82aef3c8ddb96132ce5a9b23688d29f237093e55.zip
b200: fw: Change USB2 Buffer Size and Buffer Count
Change FX3 firmware for USB2 so the eob flag is always seen, particularly on packets that are a multiple of 512 bytes in size.
Diffstat (limited to 'firmware')
-rw-r--r--firmware/fx3/b200/b200_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/fx3/b200/b200_main.c b/firmware/fx3/b200/b200_main.c
index e5c55d6a7..ac4988ae0 100644
--- a/firmware/fx3/b200/b200_main.c
+++ b/firmware/fx3/b200/b200_main.c
@@ -1116,8 +1116,8 @@ void b200_fw_start(void) {
case CY_U3P_FULL_SPEED:
case CY_U3P_HIGH_SPEED:
max_packet_size = 512;
- data_buffer_count = 16;
- data_buffer_size = 512;
+ data_buffer_count = g_config.dma_buffer_count;
+ data_buffer_size = g_config.dma_buffer_size;
g_vendor_req_buff_size = USB2_VREQ_BUF_SIZE; // Max 64
num_packets_per_burst = USB2_PACKETS_PER_BURST; // 1