1. 解决本地注册设备的流程无法正常控制设备的问题

2. 修改之前的 版本固件命名不对的问题
3. 增加debug kit,但是默认不开启(还在调试中)
This commit is contained in:
2025-11-04 21:24:15 +08:00
parent 21c6d05bad
commit 8270708ef2
27 changed files with 893 additions and 34 deletions

View File

@@ -7,10 +7,26 @@
*/
#include "hsf.h"
#include "errcode.h"
#include "systick.h"
#include "debug_kit/include/debug_kit.h"
#include "spotlight.h"
#ifdef HF_MCU_OTA
#include "mcu_update.h"
#endif
static void *dk_delayed_start(const char *arg)
{
(void)arg;
unsigned int wait_ms = 0;
while (!hf_hilink_main_is_runing()) {
msleep(100);
if ((wait_ms += 100) > 10000) { break; }
}
msleep(300);
debug_kit_init();
return NULL;
}
int g_module_id = HFM_TYPE_LPT262;
const int hf_lpt_262_gpio_fid_to_pid_map_table[HFM_MAX_FUNC_CODE]=
{
@@ -223,12 +239,14 @@ int USER_FUNC user_app_main(void)
HF_Debug(DEBUG_WARN,"start uart fail!\r\n");
}
spotlight_main();
// 延后启动 debug kit等待 HiLink Main 运行后再启动,避免启动期资源竞争
// dk_delayed_start(NULL);
#ifdef HF_MCU_OTA
if(hf_mcu_init() != HF_SUCCESS)
HF_Debug(DEBUG_WARN,"init mcu ota fail!\r\n");
#endif
//See Wi-Fi Config tools APP for detailed usage of this thread, only debug mode open
if(hfdbg_get_level())
if(hfdbg_get_level())
{
while(!hfnet_wifi_is_active())
{