适配HSP更新

This commit is contained in:
2026-04-14 18:25:35 +08:00
parent 2cf04221d5
commit d9873206cc
4 changed files with 23 additions and 5 deletions

View File

@@ -1,11 +1,20 @@
#include "has_platform.h"
static void timer_cb(void *arg)
{
(void)arg;
printf("hello timer\n");
has_timer_set(timer_cb, NULL, 1000);
}
static OS_THREAD_ID gui_tid;
void *gui_task(void *param)
{
(void)param;
uint8_t data[2];
data[0] = 0x5a;
data[1] = 0x5b;
has_timer_set(timer_cb, NULL, 1000);
while (1)
{
has_msg_publish(GUI, data, sizeof(data));