diff options
author | Josh Blum <josh@joshknows.com> | 2010-02-16 12:25:31 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-02-16 12:25:31 -0800 |
commit | 429342fbab61b49c6622f994c5522ee3eee7e39a (patch) | |
tree | 5d607d3f6314d79403bffdce179d6c95a5e8759b /lib/usrp/dboard | |
parent | 1b70ff306342ca1078e105488811a52c49b446f4 (diff) | |
download | uhd-429342fbab61b49c6622f994c5522ee3eee7e39a.tar.gz uhd-429342fbab61b49c6622f994c5522ee3eee7e39a.tar.bz2 uhd-429342fbab61b49c6622f994c5522ee3eee7e39a.zip |
Added usrp2 impl for the guts of the usrp2 handling.
The top level usrp2 will contain an impl and forward calls to it.
Diffstat (limited to 'lib/usrp/dboard')
-rw-r--r-- | lib/usrp/dboard/id.cpp | 1 | ||||
-rw-r--r-- | lib/usrp/dboard/manager.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/usrp/dboard/id.cpp b/lib/usrp/dboard/id.cpp index 0f173ef14..80162240e 100644 --- a/lib/usrp/dboard/id.cpp +++ b/lib/usrp/dboard/id.cpp @@ -24,6 +24,7 @@ using namespace uhd::usrp::dboard; std::ostream& operator<<(std::ostream &os, const dboard_id_t &id){ //map the dboard ids to string representations uhd::dict<dboard_id_t, std::string> id_to_str; + id_to_str[ID_NONE] = "none"; id_to_str[ID_BASIC_TX] = "basic tx"; id_to_str[ID_BASIC_RX] = "basic rx"; diff --git a/lib/usrp/dboard/manager.cpp b/lib/usrp/dboard/manager.cpp index f6d9a718e..4a675fd0b 100644 --- a/lib/usrp/dboard/manager.cpp +++ b/lib/usrp/dboard/manager.cpp @@ -42,6 +42,8 @@ static void register_internal_dboards(void){ static bool called = false; if (called) return; called = true; //register the known dboards (dboard id, constructor, subdev names) + manager::register_subdevs(ID_NONE, &basic_tx::make, list_of("")); //for none, make a basic tx + manager::register_subdevs(ID_NONE, &basic_rx::make, list_of("ab")); //for none, make a basic rx (one subdev) manager::register_subdevs(ID_BASIC_TX, &basic_tx::make, list_of("")); manager::register_subdevs(ID_BASIC_RX, &basic_rx::make, list_of("a")("b")("ab")); } |