summaryrefslogtreecommitdiff
path: root/src/app/donothing
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-10-18 09:17:46 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-10-18 09:17:46 +0200
commite01e0cfd5b5e422cf64a1085bb75742b636f8201 (patch)
treec47292f84bd8ef0d8e0dbf71c6a42ea18c9f3d0a /src/app/donothing
parent9fa30bd1b7a197255626c871f61a0b5d4ab7ddf9 (diff)
add "Do nothing" app
Diffstat (limited to 'src/app/donothing')
-rw-r--r--src/app/donothing/Makefile.inc3
-rw-r--r--src/app/donothing/main.cc18
2 files changed, 21 insertions, 0 deletions
diff --git a/src/app/donothing/Makefile.inc b/src/app/donothing/Makefile.inc
new file mode 100644
index 0000000..0608a82
--- /dev/null
+++ b/src/app/donothing/Makefile.inc
@@ -0,0 +1,3 @@
+timer_cycles = 0
+timer_s = 0
+loop = 0
diff --git a/src/app/donothing/main.cc b/src/app/donothing/main.cc
new file mode 100644
index 0000000..242de6f
--- /dev/null
+++ b/src/app/donothing/main.cc
@@ -0,0 +1,18 @@
+#include "arch.h"
+#include "driver/gpio.h"
+#include "driver/stdout.h"
+#include "driver/uptime.h"
+
+int main(void)
+{
+ arch.setup();
+ gpio.setup();
+ kout.setup();
+
+ kout << "Hello, World!" << endl;
+ kout << "Naptime." << endl;
+
+ arch.idle();
+
+ return 0;
+}