| | |
| | | #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) |
| | |
| | | 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) |
| | | { |
| | | |
| | |
| | | DBG_Poll(); |
| | | BT_Poll(); |
| | | SBUS_Poll(); |
| | | PythonLink_Poll(); |
| | | HIDO_ATLitePoll(); |
| | | Internet_Poll(); |
| | | GPS_Poll(); |