diff options
author | Mark Meserve <mark.meserve@ni.com> | 2017-04-10 15:36:35 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:45 -0800 |
commit | 701904882cb63202f277af18c7ef11ac6cc3a581 (patch) | |
tree | 910db7bcb7129a7c1d5f8d883fe21b37ff91ebe2 /mpm/dboards/magnesium_manager.cpp | |
parent | ae21f9b9d38cb98c91bee84fc4fcf6a81a3e0c0c (diff) | |
download | uhd-701904882cb63202f277af18c7ef11ac6cc3a581.tar.gz uhd-701904882cb63202f277af18c7ef11ac6cc3a581.tar.bz2 uhd-701904882cb63202f277af18c7ef11ac6cc3a581.zip |
mpm: Improved ad937x code
- Add gain control pin configuration
- Fixed gcc compilation
- Better docstrings
Diffstat (limited to 'mpm/dboards/magnesium_manager.cpp')
-rw-r--r-- | mpm/dboards/magnesium_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpm/dboards/magnesium_manager.cpp b/mpm/dboards/magnesium_manager.cpp index d5e07d1e0..8639a7ff1 100644 --- a/mpm/dboards/magnesium_manager.cpp +++ b/mpm/dboards/magnesium_manager.cpp @@ -28,5 +28,5 @@ magnesium_periph_manager::magnesium_periph_manager( _clock_spi = lmk04828_spi_iface::make(mpm::spi::spidev_iface::make(lmk_spidev)); _clock_ctrl = lmk04828_iface::make(_clock_spi->get_write_fn(), _clock_spi->get_read_fn()); _mykonos_spi = mpm::spi::spidev_iface::make(mykonos_spidev); - _mykonos_ctrl = ad937x_ctrl::make(_spi_mutex, _mykonos_spi); + _mykonos_ctrl = ad937x_ctrl::make(_spi_mutex, _mykonos_spi, mpm::ad937x::gpio::gain_pins_t()); }; |