summaryrefslogtreecommitdiff
path: root/system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'system.cpp')
-rw-r--r--system.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/system.cpp b/system.cpp
new file mode 100644
index 0000000..d130d66
--- /dev/null
+++ b/system.cpp
@@ -0,0 +1,11 @@
+#include "system.hpp"
+
+#include <Arduino.h>
+
+namespace tq::system {
+
+// Abort compilation if the interrupt pin is not valid
+static_assert(digitalPinToInterrupt(data_ready_signal_pin) != -1,
+ "The selected pin is not a valid interrupt source!");
+
+} \ No newline at end of file