diff options
Diffstat (limited to 'wirish/HardwareSPI.cpp')
-rw-r--r-- | wirish/HardwareSPI.cpp | 5 |
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; |