Explorar o código

fix: bsp/win32编译失败. 鉴于该bsp尚未全部迁移完, 那就补回luat_rtos_task_sleep函数吧

Wendal Chen %!s(int64=2) %!d(string=hai) anos
pai
achega
8a989e1a36
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      bsp/win32/port/luat_timer_win32.c

+ 6 - 0
bsp/win32/port/luat_timer_win32.c

@@ -117,3 +117,9 @@ void luat_timer_us_delay(size_t us) {
     if (us)
         usleep(us);
 }
+
+void luat_rtos_task_sleep(uint32_t ms) {
+    if (ms > 0) {
+        Sleep(1000);
+    }
+}