From 30a8d2ecc36ce8ad6c01032e514ac66a277f06d0 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 29 Jan 2010 00:24:15 -0800 Subject: Added dboard id enum. Moved timespec into its own header. --- lib/usrp/dboard/manager.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'lib/usrp/dboard/manager.cpp') diff --git a/lib/usrp/dboard/manager.cpp b/lib/usrp/dboard/manager.cpp index e9d973cb5..43152a064 100644 --- a/lib/usrp/dboard/manager.cpp +++ b/lib/usrp/dboard/manager.cpp @@ -11,6 +11,7 @@ using namespace usrp_uhd; using namespace usrp_uhd::usrp::dboard; +using namespace boost::assign; /*********************************************************************** * register internal dboards @@ -28,16 +29,16 @@ static void register_internal_dboards(void){ //ensure that this function can only be called once per instance static bool called = false; if (called) return; called = true; - //register the known dboards (dboard id, constructor, num subdevs) - manager::register_subdevs(0x0000, &basic_tx::make, boost::assign::list_of("")); - manager::register_subdevs(0x0001, &basic_rx::make, boost::assign::list_of("a")("b")("ab")); + //register the known dboards (dboard id, constructor, subdev names) + 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")); } /*********************************************************************** * storage and registering for dboards **********************************************************************/ //map a dboard id to a dboard constructor -static std::map id_to_ctor_map; +static std::map id_to_ctor_map; //map a dboard constructor to subdevice names static std::map ctor_to_names_map; @@ -99,7 +100,7 @@ private: * dboard manager methods **********************************************************************/ static manager::dboard_ctor_t const& get_dboard_ctor( - manager::dboard_id_t dboard_id, + dboard_id_t dboard_id, std::string const& xx_type ){ //verify that there is a registered constructor for this id -- cgit v1.2.3