|
|
@@ -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;
|
|
|
+}
|