Explorar o código

add: 添加函数luat_mcu_hz

Wendal Chen %!s(int64=4) %!d(string=hai) anos
pai
achega
630c9aa6d7
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      app/port/luat_mcu_air101.c

+ 4 - 0
app/port/luat_mcu_air101.c

@@ -57,3 +57,7 @@ const char* luat_mcu_unique_id(size_t* t) {
 long luat_mcu_ticks(void) {
     return xTaskGetTickCount();
 }
+
+uint32_t luat_mcu_hz(void) {
+    return configTICK_RATE_HZ;
+}