aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-04-05 17:16:59 -0700
committerChristian Cunningham <cc@localhost>2022-04-05 17:16:59 -0700
commite7b8a60660d1e8380e73952742de796a6b1e3528 (patch)
tree45df74331d9914d6b4b1c58681e32058c290ac95
parent2f639629c22a6a5fc47d2c7f2135f46dd04c43ea (diff)
Move declaration to header
-rw-r--r--include/usr/test.h8
-rw-r--r--usr/main.c5
2 files changed, 9 insertions, 4 deletions
diff --git a/include/usr/test.h b/include/usr/test.h
new file mode 100644
index 0000000..582c06f
--- /dev/null
+++ b/include/usr/test.h
@@ -0,0 +1,8 @@
+#ifndef USR_TEST_H
+#define USR_TEST_H
+
+void delaytest(void);
+void gptest(void);
+void test_super(void);
+
+#endif \ No newline at end of file
diff --git a/usr/main.c b/usr/main.c
index 579b5e4..2b2c97b 100644
--- a/usr/main.c
+++ b/usr/main.c
@@ -6,6 +6,7 @@
#include <usr/cxx.h>
#include <usr/math.h>
#include <usr/string.h>
+#include <usr/test.h>
#include <usr/timed.h>
#include <usr/uart.h>
@@ -17,10 +18,6 @@ static struct SysTimerInfo stime_3 = { .tick_rate = 10, .priority = 0, .arg = 0,
static struct UartInfo UART_INFO = { .priority = 2, };
static struct GPIOInfo gpinfo = { .pin = (1<<16 | 1<<12), .priority = 0, };
-void delaytest(void);
-void gptest(void);
-void test_super(void);
-
void main(void)
{
// Runs the Core RTOS tests