[beken-72xx] Implement API reboot() and getCpuFreq()

This commit is contained in:
Kuba Szczodrzyński
2022-06-20 21:29:02 +02:00
parent c6a428ddd4
commit ac2aabe6e3

View File

@@ -16,10 +16,11 @@ extern "C" {
#include <flash_pub.h>
#include <sys_ctrl.h>
#include <sys_rtos.h>
#include <wlan_ui_pub.h>
}
void LibreTuya::restart() {
// TODO
bk_reboot();
}
/* CPU-related */
@@ -49,8 +50,7 @@ const char *LibreTuya::getChipCoreType() {
}
uint32_t LibreTuya::getCpuFreq() {
// TODO
return 0;
return configCPU_CLOCK_HZ;
}
uint32_t LibreTuya::getCycleCount() {