aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/basic.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-03-15 12:15:33 -0700
committerJosh Blum <josh@joshknows.com>2010-03-15 12:15:33 -0700
commit7590f187d0414fd05e23828488166bc4bc88df26 (patch)
tree20eb597e4614276120814b727486c50e95f234fd /host/lib/usrp/dboard/basic.cpp
parent1ba6aafa678cdf61aef44de1d22ec72653e87ec7 (diff)
downloaduhd-7590f187d0414fd05e23828488166bc4bc88df26.tar.gz
uhd-7590f187d0414fd05e23828488166bc4bc88df26.tar.bz2
uhd-7590f187d0414fd05e23828488166bc4bc88df26.zip
Device sub classes can register themselves. Simplifies device.cpp internals.
Added static instance macro for lazy instantiation of static variables.
Diffstat (limited to 'host/lib/usrp/dboard/basic.cpp')
-rw-r--r--host/lib/usrp/dboard/basic.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/usrp/dboard/basic.cpp b/host/lib/usrp/dboard/basic.cpp
index 1059feb19..e719950e8 100644
--- a/host/lib/usrp/dboard/basic.cpp
+++ b/host/lib/usrp/dboard/basic.cpp
@@ -74,10 +74,10 @@ static dboard_base::sptr make_lf_tx(dboard_base::ctor_args_t const& args){
}
STATIC_BLOCK(reg_dboards){
- dboard_manager::register_subdevs(0x0000, &make_basic_tx, "Basic TX", list_of(""));
- dboard_manager::register_subdevs(0x0001, &make_basic_rx, "Basic RX", list_of("a")("b")("ab"));
- dboard_manager::register_subdevs(0x000e, &make_lf_tx, "LF TX", list_of(""));
- dboard_manager::register_subdevs(0x000f, &make_lf_rx, "LF RX", list_of("a")("b")("ab"));
+ dboard_manager::register_dboard(0x0000, &make_basic_tx, "Basic TX", list_of(""));
+ dboard_manager::register_dboard(0x0001, &make_basic_rx, "Basic RX", list_of("a")("b")("ab"));
+ dboard_manager::register_dboard(0x000e, &make_lf_tx, "LF TX", list_of(""));
+ dboard_manager::register_dboard(0x000f, &make_lf_rx, "LF RX", list_of("a")("b")("ab"));
}
/***********************************************************************