From e01e0cfd5b5e422cf64a1085bb75742b636f8201 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 18 Oct 2018 09:17:46 +0200 Subject: add "Do nothing" app --- src/app/donothing/Makefile.inc | 3 +++ src/app/donothing/main.cc | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/app/donothing/Makefile.inc create mode 100644 src/app/donothing/main.cc 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; +} -- cgit v1.2.3