yincheng.zhong
3 天以前 30303d366d1a0d857357c90bed876686f2d1e603
STM32H743/APL/app.c
@@ -15,6 +15,7 @@
#include "TCPClient.h"
#include "SBUS.h"
#include "pwm_ctrol.h"
#include "PythonLink.h"
static osSemaphoreId_t g_semaphoreHandle = NULL;
extern uint8_t restart_num;
void IdleTask(void)
@@ -42,10 +43,11 @@
    TCPClient_Init();
   BT_Init();
    SBUS_Init();
    PythonLink_Init();
    while (1)
    {
        //HIDO_UINT32 timeout = HIDO_TimerGetNearestTimeout(1000);
        HIDO_UINT32 timeout = 100;
        HIDO_UINT32 timeout = 5;
        if (xSemaphoreTake(g_semaphoreHandle, timeout / portTICK_PERIOD_MS) == pdTRUE)
        {
@@ -53,6 +55,7 @@
        DBG_Poll();
        BT_Poll();
        SBUS_Poll();
        PythonLink_Poll();
        HIDO_ATLitePoll();
        Internet_Poll();
        GPS_Poll();