summaryrefslogtreecommitdiff
path: root/system.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2026-06-20 22:23:48 +0200
committerFelix Morgner <felix.morgner@gmail.com>2026-06-20 22:44:43 +0200
commitd7c2a8029c4aefc295719174a863129645d6ab99 (patch)
treed2f36ab8721dd32235dc63a60218378eb35922c8 /system.cpp
downloadthrottle-quadrant-d7c2a8029c4aefc295719174a863129645d6ab99.tar.xz
throttle-quadrant-d7c2a8029c4aefc295719174a863129645d6ab99.zip
initial commitHEADmaster
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