Ver Fonte

add: 添加函数luat_mcu_hz

Wendal Chen há 4 anos atrás
pai
commit
630c9aa6d7
1 ficheiros alterados com 4 adições e 0 exclusões
  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;
+}