Explorar o código

Create hello.c

Bernard Xiong %!s(int64=8) %!d(string=hai) anos
pai
achega
e9f137c2e5
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  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);