diff options
author | Jakob Odersky <jodersky@gmail.com> | 2015-05-06 23:24:59 +0200 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2015-05-14 12:27:10 +0200 |
commit | 893d4160e93f47e333b79e380fed88c9d9e7b732 (patch) | |
tree | 954752ead085632d0ad158da7dc44c53acd4402e /src/modules | |
parent | 20d2c44083911cf1969dc31f37e54a569a94b407 (diff) | |
download | px4-firmware-893d4160e93f47e333b79e380fed88c9d9e7b732.tar.gz px4-firmware-893d4160e93f47e333b79e380fed88c9d9e7b732.tar.bz2 px4-firmware-893d4160e93f47e333b79e380fed88c9d9e7b732.zip |
implement dummy helloworld app
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/helloworld/helloworld.c | 10 | ||||
-rw-r--r-- | src/modules/helloworld/module.mk | 3 |
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 |