适配HSP更新
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user