Skip to content

Commit

Permalink
libbladeRF: Added CMake variable to disable USB timeouts
Browse files Browse the repository at this point in the history
When debugging the FX3, NIOS, or FPGA, it's helpful if the host
side isn't constantly timing out. These can be disabled by defining:

    LIBBLADERF_DISABLE_USB_TIMEOUTS=Yes
  • Loading branch information
jynik committed Oct 16, 2014
1 parent 6bb85a6 commit dfa9f51
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions host/libraries/libbladeRF/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,13 @@ if (MSVC)
endif()

if(ENABLE_BACKEND_USB)
# Useful when doing FX3, NIOS-II, or FPGA debugging
if(LIBBLADERF_DISABLE_USB_TIMEOUTS)
add_definitions("-DPERIPHERAL_TIMEOUT_MS=0")
add_definitions("-DCTRL_TIMEOUT_MS=0")
add_definitions("-DBULK_TIMEOUT_MS=0")
endif()

set(LIBBLADERF_SOURCE ${LIBBLADERF_SOURCE} src/backend/usb/usb.c)
endif()

Expand Down

0 comments on commit dfa9f51

Please sign in to comment.