aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/HardwareSPI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wirish/HardwareSPI.cpp')
-rw-r--r--wirish/HardwareSPI.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/wirish/HardwareSPI.cpp b/wirish/HardwareSPI.cpp
index 120cd67..94985eb 100644
--- a/wirish/HardwareSPI.cpp
+++ b/wirish/HardwareSPI.cpp
@@ -38,6 +38,11 @@
#include <wirish/wirish.h>
#include <wirish/boards.h>
+#if CYCLES_PER_MICROSECOND != 72
+/* TODO [0.2.0?] something smarter than this */
+#warning "Unexpected clock speed; SPI frequency calculation will be incorrect"
+#endif
+
struct spi_pins {
uint8 nss;
uint8 sck;