diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-06-27 13:33:53 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-06-28 14:06:21 -0700 |
commit | 8f16f05b20efcc9e5371c89585b992b237b43eb3 (patch) | |
tree | 1c5e172a4583b00fd3fd5178e5b879cc439fb633 /mpm/lib/mykonos | |
parent | 4f49b4a937c0f6724828fa6ecfa9b14cc0f23f34 (diff) | |
download | uhd-8f16f05b20efcc9e5371c89585b992b237b43eb3.tar.gz uhd-8f16f05b20efcc9e5371c89585b992b237b43eb3.tar.bz2 uhd-8f16f05b20efcc9e5371c89585b992b237b43eb3.zip |
mpm: ad9371: Accept PID 0x01 as well as 0x03
Diffstat (limited to 'mpm/lib/mykonos')
-rw-r--r-- | mpm/lib/mykonos/ad937x_device.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mpm/lib/mykonos/ad937x_device.cpp b/mpm/lib/mykonos/ad937x_device.cpp index c46f0ad89..ceaa0b93c 100644 --- a/mpm/lib/mykonos/ad937x_device.cpp +++ b/mpm/lib/mykonos/ad937x_device.cpp @@ -36,6 +36,7 @@ static const double RX_DEFAULT_GAIN = 0; static const double TX_DEFAULT_GAIN = 0; static const uint32_t AD9371_PRODUCT_ID = 0x3; +static const uint32_t AD9371_XBCZ_PRODUCT_ID = 0x1; static const size_t ARM_BINARY_SIZE = 98304; static const uint32_t PLL_LOCK_TIMEOUT_MS = 200; @@ -134,7 +135,10 @@ std::vector<uint8_t> ad937x_device::_get_arm_binary() void ad937x_device::_verify_product_id() { const uint8_t product_id = get_product_id(); - if (product_id != AD9371_PRODUCT_ID) { + if (product_id != AD9371_PRODUCT_ID + && product_id != AD9371_XBCZ_PRODUCT_ID) { + // The XBCZ code is an exception, so we don't print it as 'Expected' + // if this fails. throw mpm::runtime_error(str( boost::format("AD9371 product ID does not match expected ID! " "Read: %X Expected: %X") |