From 7920490f1e0051c009637ec43d6dc9ecd071b217 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Tue, 31 Dec 2013 20:34:01 -0800 Subject: [PATCH] Change USB bulk endpoint for baseband data to have only one queue item. Since there are only two baseband buffers, and one is transferring with the codec and the other with USB, enqueueing more than one buffer at a time would result in transferring an incomplete buffer. --- firmware/hackrf_usb/usb_endpoint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/hackrf_usb/usb_endpoint.c b/firmware/hackrf_usb/usb_endpoint.c index c965287f..623f9d1f 100644 --- a/firmware/hackrf_usb/usb_endpoint.c +++ b/firmware/hackrf_usb/usb_endpoint.c @@ -58,7 +58,7 @@ usb_endpoint_t usb_endpoint_bulk_in = { .setup_complete = 0, .transfer_complete = usb_queue_transfer_complete }; -static USB_DEFINE_QUEUE(usb_endpoint_bulk_in, 4); +static USB_DEFINE_QUEUE(usb_endpoint_bulk_in, 1); usb_endpoint_t usb_endpoint_bulk_out = { .address = 0x02, @@ -68,6 +68,6 @@ usb_endpoint_t usb_endpoint_bulk_out = { .setup_complete = 0, .transfer_complete = usb_queue_transfer_complete }; -static USB_DEFINE_QUEUE(usb_endpoint_bulk_out, 4); +static USB_DEFINE_QUEUE(usb_endpoint_bulk_out, 1);