summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/CMakeLists.txt1
-rw-r--r--apps/helloworld/CMakeLists.txt2
-rw-r--r--apps/helloworld/main.c6
3 files changed, 9 insertions, 0 deletions
diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt
new file mode 100644
index 0000000..f69165d
--- /dev/null
+++ b/apps/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory(helloworld)
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;
+}