From 47ca015fd218b35583867ed4def2425e7280c552 Mon Sep 17 00:00:00 2001 From: Rey Tucker Date: Wed, 28 Nov 2018 17:01:25 -0500 Subject: [PATCH] host: libbladeRF/board.h: redefine BLADERF_CAP_FPGA_TUNING BLADERF_CAP_FPGA_TUNING was previously defined to be the same as BLADERF_CAP_SCHEDULED_RETUNE, but these features are distinct on the bladeRF 2. --- host/libraries/libbladeRF/src/board/board.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/host/libraries/libbladeRF/src/board/board.h b/host/libraries/libbladeRF/src/board/board.h index b6cb8a14..a62de272 100644 --- a/host/libraries/libbladeRF/src/board/board.h +++ b/host/libraries/libbladeRF/src/board/board.h @@ -54,13 +54,8 @@ #define BLADERF_CAP_TIMESTAMPS (1 << 2) /** - * FPGA version 0.2.0 introduced NIOS-based tuning support. - */ -#define BLADERF_CAP_FPGA_TUNING (1 << 3) - -/** - * FPGA version 0.2.0 also introduced scheduled retune support. The - * re-use of this capability bit is intentional. + * FPGA v0.2.0 introduced scheduled retune support on the bladeRF 1, and FPGA + * v0.10.0 introduced it on the bladeRF 2. */ #define BLADERF_CAP_SCHEDULED_RETUNE (1 << 3) @@ -108,6 +103,12 @@ */ #define BLADERF_CAP_AGC_DC_LUT (1 << 10) +/** + * FPGA v0.2.0 introduced NIOS-based tuning support on the bladeRF 1, and FPGA + * v0.10.1 introduced it on the bladeRF 2. + */ +#define BLADERF_CAP_FPGA_TUNING (1 << 11) + /** * Firmware 1.7.1 introduced firmware-based loopback */