From b29246a9e2d7ed1e03e44cfc6804615fcfa5a5d8 Mon Sep 17 00:00:00 2001 From: Andrej Rode Date: Tue, 21 Mar 2017 19:43:22 -0700 Subject: mpm: add make factory to lmk04828 spi iface --- mpm/lib/lmk04828/lmk04828_spi_iface.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mpm/lib') diff --git a/mpm/lib/lmk04828/lmk04828_spi_iface.cpp b/mpm/lib/lmk04828/lmk04828_spi_iface.cpp index e281467e1..2e3b43a3c 100644 --- a/mpm/lib/lmk04828/lmk04828_spi_iface.cpp +++ b/mpm/lib/lmk04828/lmk04828_spi_iface.cpp @@ -1,6 +1,7 @@ #include "lmk/lmk04828_spi_iface.hpp" #include "uhd/exception.hpp" #include +#include lmk04828_spi_iface::lmk04828_spi_iface(uhd::spi_iface::sptr iface) : _spi_iface(iface) { @@ -41,3 +42,7 @@ uint8_t lmk04828_spi_iface::spi_read(uint32_t addr) { return data & 0xFF; } + +lmk04828_spi_iface::sptr lmk04828_spi_iface::make(uhd::spi_iface::sptr iface){ + return boost::make_shared(iface); +} -- cgit v1.2.3