From da8a6ff1ee9ac9eb14cb290a8fed9a95f5232a21 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 10 Oct 2011 17:18:14 -0700 Subject: usrp: added revision field to the dboard id class --- host/utils/usrp_burn_db_eeprom.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'host/utils') diff --git a/host/utils/usrp_burn_db_eeprom.cpp b/host/utils/usrp_burn_db_eeprom.cpp index 253b73262..b6b2dc4d6 100644 --- a/host/utils/usrp_burn_db_eeprom.cpp +++ b/host/utils/usrp_burn_db_eeprom.cpp @@ -44,6 +44,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ ("unit", po::value(&unit)->default_value(""), "which unit [RX, TX, or GDB]") ("id", po::value(), "dboard id to burn, omit for readback") ("ser", po::value(), "serial to burn, omit for readback") + ("rev", po::value(), "revision to burn, omit for readback") ; po::variables_map vm; @@ -87,6 +88,13 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ } std::cout << boost::format(" Current serial: \"%s\"") % db_eeprom.serial << std::endl; + //------------- handle the dboard revision------------------------// + if (vm.count("rev")){ + db_eeprom.revision = vm["rev"].as(); + tree->access(db_path).set(db_eeprom); + } + std::cout << boost::format(" Current revision: \"%s\"") % db_eeprom.revision << std::endl; + std::cout << " Done" << std::endl << std::endl; return 0; } -- cgit v1.2.3