summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/hello/SConscript8
-rw-r--r--components/hello/hello.c6
2 files changed, 14 insertions, 0 deletions
diff --git a/components/hello/SConscript b/components/hello/SConscript
new file mode 100644
index 0000000000..5c3eccd149
--- /dev/null
+++ b/components/hello/SConscript
@@ -0,0 +1,8 @@
+Import('env')
+
+src = ('hello.c')
+
+obj = env.Object(src)
+
+Return('obj')
+
diff --git a/components/hello/hello.c b/components/hello/hello.c
new file mode 100644
index 0000000000..c4653793a4
--- /dev/null
+++ b/components/hello/hello.c
@@ -0,0 +1,6 @@
+#include <rtthread.h>
+
+void hello()
+{
+ rt_kprintf("Hello RT-Thread\n");
+}