aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/helloworld/helloworld.c10
-rw-r--r--src/modules/helloworld/module.mk3
2 files changed, 13 insertions, 0 deletions
diff --git a/src/modules/helloworld/helloworld.c b/src/modules/helloworld/helloworld.c
new file mode 100644
index 000000000..5b5912125
--- /dev/null
+++ b/src/modules/helloworld/helloworld.c
@@ -0,0 +1,10 @@
+#include <nuttx/config.h>
+#include <stdio.h>
+#include <errno.h>
+
+__EXPORT int helloworld_main(int argc, char *argv[]);
+
+int helloworld_main(int argc, char *argv[]) {
+ printf("Hello world!\n");
+ return 0;
+}
diff --git a/src/modules/helloworld/module.mk b/src/modules/helloworld/module.mk
new file mode 100644
index 000000000..f117ae447
--- /dev/null
+++ b/src/modules/helloworld/module.mk
@@ -0,0 +1,3 @@
+
+MODULE_COMMAND = helloworld
+SRCS = helloworld.c