aboutsummaryrefslogtreecommitdiff
path: root/test_fw/include/bringup.h
diff options
context:
space:
mode:
authorNathan Perry <np@npry.dev>2024-10-24 00:25:25 -0400
committerNathan Perry <np@npry.dev>2024-10-24 00:25:25 -0400
commit5077fec0348e717fa93bd1879548fed03fcae52e (patch)
tree2b6a93daa2ba9d52d17fa5258f705c9682e49984 /test_fw/include/bringup.h
parent9c07c2b85d908f699f8ba590b1d60232157eca90 (diff)
test_fw: refactor
Diffstat (limited to 'test_fw/include/bringup.h')
-rw-r--r--test_fw/include/bringup.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/test_fw/include/bringup.h b/test_fw/include/bringup.h
new file mode 100644
index 0000000..762a26a
--- /dev/null
+++ b/test_fw/include/bringup.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <Arduino.h>
+#include <etl/span.h>
+
+namespace ocularium::bringup {
+ struct init_check
+ {
+ const String name;
+ bool (*f)();
+ bool succeeded;
+ };
+
+ void startup_checks(const etl::span<init_check> &checks);
+ void init_buses();
+ void init_pins();
+ void boot_animation();
+}