Browse Source

add: 添加函数luat_mcu_hz

Wendal Chen 4 years ago
parent
commit
0a0c34f927
1 changed files with 5 additions and 1 deletions
  1. 5 1
      application/src/luat_mcu_air105.c

+ 5 - 1
application/src/luat_mcu_air105.c

@@ -31,7 +31,7 @@ int luat_mcu_set_clk(size_t mhz) {
 }
 
 int luat_mcu_get_clk(void) {
-    return 0;
+    return 192;
 }
 
 static uint8_t unique_id[16] = {0};
@@ -44,3 +44,7 @@ const char* luat_mcu_unique_id(size_t* t) {
 long luat_mcu_ticks(void) {
     return GetSysTickMS();
 }
+
+uint32_t luat_mcu_hz(void) {
+    return configTICK_RATE_HZ;
+}