aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/lib/spi/spi_lock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mpm/lib/spi/spi_lock.cpp')
-rw-r--r--mpm/lib/spi/spi_lock.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/mpm/lib/spi/spi_lock.cpp b/mpm/lib/spi/spi_lock.cpp
deleted file mode 100644
index b37daa738..000000000
--- a/mpm/lib/spi/spi_lock.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-#include "mpm/spi/spi_lock.hpp"
-
-spi_lock::spi_lock(uint8_t spidev_index) :
- spidev_index(spidev_index)
-{
-
-}
-
-uint8_t spi_lock::get_spidev() const
-{
- return spidev_index;
-}
-
-void spi_lock::lock()
-{
- spi_mutex.lock();
-}
-void spi_lock::unlock()
-{
- spi_mutex.unlock();
-}
-
-spi_lock::sptr spi_lock::make(uint8_t spidev_index)
-{
- return std::make_shared<spi_lock>(spidev_index);
-}