summaryrefslogtreecommitdiff
path: root/apps/helloworld
diff options
context:
space:
mode:
Diffstat (limited to 'apps/helloworld')
-rw-r--r--apps/helloworld/CMakeLists.txt2
-rw-r--r--apps/helloworld/main.c6
2 files changed, 8 insertions, 0 deletions
diff --git a/apps/helloworld/CMakeLists.txt b/apps/helloworld/CMakeLists.txt
new file mode 100644
index 0000000..a6bda1d
--- /dev/null
+++ b/apps/helloworld/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_executable(helloworld main.c)
+mcu_add_executable(TARGET helloworld)
diff --git a/apps/helloworld/main.c b/apps/helloworld/main.c
new file mode 100644
index 0000000..5fe71da
--- /dev/null
+++ b/apps/helloworld/main.c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+int main() {
+ printf("Hello world!");
+ return 0;
+}