Revision b96088b6 host/lib/usrp/usrp1/mboard_impl.cpp
| b/host/lib/usrp/usrp1/mboard_impl.cpp | ||
|---|---|---|
| 25 | 25 |
#include <uhd/usrp/subdev_props.hpp> |
| 26 | 26 |
#include <uhd/utils/warning.hpp> |
| 27 | 27 |
#include <uhd/utils/assert.hpp> |
| 28 |
#include <uhd/utils/images.hpp> |
|
| 28 | 29 |
#include <boost/assign/list_of.hpp> |
| 29 | 30 |
#include <boost/foreach.hpp> |
| 30 | 31 |
#include <boost/bind.hpp> |
| ... | ... | |
| 318 | 319 |
**********************************************************************/ |
| 319 | 320 |
void usrp1_impl::mboard_set(const wax::obj &key, const wax::obj &val) |
| 320 | 321 |
{
|
| 322 |
if(key.type() == typeid(std::string)) {
|
|
| 323 |
if(key.as<std::string>() == "load_eeprom") {
|
|
| 324 |
std::string usrp1_fpga_image = val.as<std::string>(); |
|
| 325 |
std::cout << "USRP1 EEPROM image: " << usrp1_fpga_image << std::endl; |
|
| 326 |
_ctrl_transport->usrp_load_eeprom(val.as<std::string>()); |
|
| 327 |
} |
|
| 328 |
|
|
| 329 |
return; |
|
| 330 |
} |
|
| 331 |
|
|
| 321 | 332 |
//handle the get request conditioned on the key |
| 322 | 333 |
switch(key.as<mboard_prop_t>()){
|
| 323 | 334 |
|
Also available in: Unified diff