浏览代码

add hello module

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@593 bbd45198-f89e-11dd-88c7-29a3b14d5316
bernard.xiong 15 年之前
父节点
当前提交
c416348020
共有 2 个文件被更改,包括 14 次插入0 次删除
  1. 8 0
      components/hello/SConscript
  2. 6 0
      components/hello/hello.c

+ 8 - 0
components/hello/SConscript

@@ -0,0 +1,8 @@
+Import('env')
+
+src = ('hello.c')
+
+obj = env.Object(src)
+
+Return('obj')
+

+ 6 - 0
components/hello/hello.c

@@ -0,0 +1,6 @@
+#include <rtthread.h>
+
+void hello()
+{
+    rt_kprintf("Hello RT-Thread\n");
+}