diff options
author | Josh Blum <josh@joshknows.com> | 2011-05-01 17:26:15 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-05-01 17:26:15 -0700 |
commit | 5c6c179689ef76ccd25d09ac4faeb9a836a066c8 (patch) | |
tree | 28c23bb2ec6c70abbe9d5c18d77902d822cf56d2 /host/lib/usrp/usrp_e100/mboard_impl.cpp | |
parent | 4b18ab84921a88f0448632355e8165ecaff4ed6f (diff) | |
download | uhd-5c6c179689ef76ccd25d09ac4faeb9a836a066c8.tar.gz uhd-5c6c179689ef76ccd25d09ac4faeb9a836a066c8.tar.bz2 uhd-5c6c179689ef76ccd25d09ac4faeb9a836a066c8.zip |
usrp-e100: add ability to set/get default master clock rate from EEPROM
Mboard eeprom map class can parse the setting (4 byte float).
The clock control will try to set the eeprom rate if present,
otherwise or under failure condition, it sets the default.
Updated docs, example, and provided helpful verbose.
I would prefer that users burn the desired rate to the eeprom (and they may too).
Diffstat (limited to 'host/lib/usrp/usrp_e100/mboard_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp_e100/mboard_impl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp_e100/mboard_impl.cpp b/host/lib/usrp/usrp_e100/mboard_impl.cpp index 29e3c5da2..5f4a208d3 100644 --- a/host/lib/usrp/usrp_e100/mboard_impl.cpp +++ b/host/lib/usrp/usrp_e100/mboard_impl.cpp @@ -207,6 +207,10 @@ void usrp_e100_impl::mboard_set(const wax::obj &key, const wax::obj &val){ return; case MBOARD_PROP_CLOCK_RATE: + std::cerr << "Helpful message:" << std::endl; + std::cerr << " I see that you are setting the master clock rate from the API." << std::endl; + std::cerr << " You may find it more convenient to burn this setting into the EEPROM." << std::endl; + std::cerr << " See the application notes for USRP-E1XX for further instructions." << std::endl; _clock_ctrl->set_fpga_clock_rate(val.as<double>()); return; |