From 7670d8abeff1666558a5f621fcde4230b8bec3e9 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 13 Sep 2019 11:56:01 -0700 Subject: twinrx: Make gpio_iface a wb_iface (was: timed_wb_iface) This completely eliminates the need for cmd_time_ctrl in the TwinRX codebase, reducing the number of dependencies on the X300 codebase. --- host/lib/usrp/dboard/twinrx/twinrx_io.hpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'host/lib/usrp') diff --git a/host/lib/usrp/dboard/twinrx/twinrx_io.hpp b/host/lib/usrp/dboard/twinrx/twinrx_io.hpp index c9665f1dd..ea1f1150a 100644 --- a/host/lib/usrp/dboard/twinrx/twinrx_io.hpp +++ b/host/lib/usrp/dboard/twinrx/twinrx_io.hpp @@ -38,7 +38,8 @@ static uint32_t get_reg(wb_iface::wb_addr_type addr) { } } -class twinrx_gpio : public timed_wb_iface { +class twinrx_gpio : public wb_iface +{ public: typedef boost::shared_ptr sptr; @@ -107,16 +108,6 @@ public: mask(CPLD_FULL_ADDR)|mask(CPLD_DATA)); } - // Timed command interface - inline time_spec_t get_time() { - return _db_iface->get_command_time(); - } - - void set_time(const time_spec_t& t) { - boost::lock_guard lock(_mutex); - _db_iface->set_command_time(t); - } - private: //Members/definitions static const uint32_t GPIO_OUTPUT_MASK = 0xFC06FE03; static const uint32_t GPIO_PINCTRL_MASK = 0x00000000; -- cgit v1.2.3