aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/device/spi.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/device/spi.h')
-rw-r--r--src/drivers/device/spi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/device/spi.h b/src/drivers/device/spi.h
index 54849c8c3..1d9837689 100644
--- a/src/drivers/device/spi.h
+++ b/src/drivers/device/spi.h
@@ -129,10 +129,15 @@ private:
uint32_t _frequency;
struct spi_dev_s *_dev;
+ /* this class does not allow copying */
+ SPI(const SPI&);
+ SPI operator=(const SPI&);
+
protected:
int _bus;
int _transfer(uint8_t *send, uint8_t *recv, unsigned len);
+
};
} // namespace device