summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2016-09-11 11:46:21 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2016-09-11 11:46:21 +0200
commit82ca0c1af744cb2b4b7f5680f3866f5ed7ee0270 (patch)
treef44588f0c9a59fb0bac7dbfb44dabefa301eb205 /apps
downloadnrf-playground-82ca0c1af744cb2b4b7f5680f3866f5ed7ee0270.tar.gz
nrf-playground-82ca0c1af744cb2b4b7f5680f3866f5ed7ee0270.tar.bz2
nrf-playground-82ca0c1af744cb2b4b7f5680f3866f5ed7ee0270.tar.xz
nrf-playground-82ca0c1af744cb2b4b7f5680f3866f5ed7ee0270.zip
o Almost working version, not quite. Probably not the right way to do stuff.
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;
+}