From fb1b7b78687da3653c0461394cee7135e701bfd5 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 25 Apr 2018 15:09:27 -0700 Subject: ad936x: De-boostify ad936x_manager, minor cleanup - Remove all use of boost::bind and boost::function - Demote some log messages to DEBUG - Change some formatting to match coding guidelines - B2xx/E310: Match changes in loopback function --- host/lib/usrp/e300/e300_impl.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'host/lib/usrp/e300') diff --git a/host/lib/usrp/e300/e300_impl.cpp b/host/lib/usrp/e300/e300_impl.cpp index 78b1f05b1..324b25407 100644 --- a/host/lib/usrp/e300/e300_impl.cpp +++ b/host/lib/usrp/e300/e300_impl.cpp @@ -508,13 +508,14 @@ e300_impl::e300_impl(const uhd::device_addr_t &device_addr) this->_setup_radio(instance); //now test each radio module's connection to the codec interface - for(radio_perifs_t &perif: _radio_perifs) - { + for (radio_perifs_t &perif : _radio_perifs) { _codec_mgr->loopback_self_test( - boost::bind( - &radio_ctrl_core_3000::poke32, perif.ctrl, radio::sr_addr(radio::CODEC_IDLE), _1 - ), - boost::bind(&radio_ctrl_core_3000::peek64, perif.ctrl, radio::RB64_CODEC_READBACK) + [&perif](const uint32_t value){ + perif.ctrl->poke32(radio::sr_addr(radio::CODEC_IDLE), value); + }, + [&perif](){ + return perif.ctrl->peek64(radio::RB64_CODEC_READBACK); + } ); } //////////////////////////////////////////////////////////////////// -- cgit v1.2.3