Bernard Xiong пре 8 година
родитељ
комит
e9f137c2e5
1 измењених фајлова са 9 додато и 0 уклоњено
  1. 9 0
      hello.c

+ 9 - 0
hello.c

@@ -0,0 +1,9 @@
+#include <rtthread.h>
+#include <finsh.h>
+
+int hello_func(int argc, char** argv)
+{
+    rt_kprintf("Hello RT-Thread!\n");
+    return 0;
+}
+MSH_CMD_EXPORT(hello_func, say hello);