소스 검색

Merge pull request #1 from Ruboom/liboran

【更新】修改示例工程代码
jb.jiang 2 년 전
부모
커밋
4f4fd7cad9
1개의 변경된 파일5개의 추가작업 그리고 6개의 파일을 삭제
  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 main(int argc, char *argv[])
 {
 {
-    int count1 = 0;
-    int count2 = 10;
+    rt_kprintf("hello RT-Thread app\n");
+
     while (1)
     while (1)
     {
     {
-        count1++;
-        count2++;
+        rt_thread_mdelay(1000);
     }
     }
 
 
-    return count1+count2;
+    return 0;
 }
 }