Explorar o código

【更新】修改示例工程代码

liboran %!s(int64=2) %!d(string=hai) anos
pai
achega
af10fb87f0
Modificáronse 1 ficheiros con 5 adicións e 6 borrados
  1. 5 6
      projects/helloworld_demo/application/main.c

+ 5 - 6
projects/helloworld_demo/application/main.c

@@ -1,14 +1,13 @@
-#include <stdio.h>
+#include "rtthread.h"
 
 int main(int argc, char *argv[])
 {
-    int count1 = 0;
-    int count2 = 10;
+    rt_kprintf("hello RT-Thread app\n");
+
     while (1)
     {
-        count1++;
-        count2++;
+        rt_thread_mdelay(1000);
     }
 
-    return count1+count2;
+    return 0;
 }