diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-06-20 22:23:48 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-06-20 22:44:43 +0200 |
| commit | d7c2a8029c4aefc295719174a863129645d6ab99 (patch) | |
| tree | d2f36ab8721dd32235dc63a60218378eb35922c8 /system.cpp | |
| download | throttle-quadrant-master.tar.xz throttle-quadrant-master.zip | |
Diffstat (limited to 'system.cpp')
| -rw-r--r-- | system.cpp | 11 |
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 |
