소스 검색

add: 添加函数luat_mcu_hz

Wendal Chen 4 년 전
부모
커밋
630c9aa6d7
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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;
+}