summaryrefslogtreecommitdiff
path: root/src/drivers/SpiMaster.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-03-08 21:38:11 +0100
committerJF <jf@codingfield.com>2020-03-08 21:38:11 +0100
commitd834f40c1014ac8926af9aaadc434a49e632b000 (patch)
tree196fd24b617102eb1659e046623c107fa9795ac9 /src/drivers/SpiMaster.h
parentbfecc8118e90998c62ff0b29c0260e66d83d8e33 (diff)
Do not copy LittleVgl object in DislayApp, use reference instead.
Make Cst816s, SpiMaster and St7789 not copiable and not movable
Diffstat (limited to 'src/drivers/SpiMaster.h')
-rw-r--r--src/drivers/SpiMaster.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/SpiMaster.h b/src/drivers/SpiMaster.h
index 82042bdf..362f480c 100644
--- a/src/drivers/SpiMaster.h
+++ b/src/drivers/SpiMaster.h
@@ -26,6 +26,11 @@ namespace Pinetime {
};
SpiMaster(const SpiModule spi, const Parameters& params);
+ SpiMaster(const SpiMaster&) = delete;
+ SpiMaster& operator=(const SpiMaster&) = delete;
+ SpiMaster(SpiMaster&&) = delete;
+ SpiMaster& operator=(SpiMaster&&) = delete;
+
bool Init();
bool Write(const uint8_t* data, size_t size);