| | |
| | | #include "UDPClient.h" |
| | | #include "bluetooth.h" |
| | | #include "TCPClient.h" |
| | | #include "SBUS.h" |
| | | #include "pwm_ctrol.h" |
| | | static osSemaphoreId_t g_semaphoreHandle = NULL; |
| | | extern uint8_t restart_num; |
| | | void IdleTask(void) |
| | |
| | | UDPClient_Init(); |
| | | TCPClient_Init(); |
| | | BT_Init(); |
| | | SBUS_Init(); |
| | | while (1) |
| | | { |
| | | //HIDO_UINT32 timeout = HIDO_TimerGetNearestTimeout(1000); |
| | |
| | | } |
| | | DBG_Poll(); |
| | | BT_Poll(); |
| | | SBUS_Poll(); |
| | | HIDO_ATLitePoll(); |
| | | Internet_Poll(); |
| | | GPS_Poll(); |
| | |
| | | |
| | | uint16_t version = g_com_map[VERSION]; |
| | | |
| | | // printf("[BOOT] Version: %u\r\n", version); |
| | | // printf("[BOOT] DeviceID: %u\r\n", dev_id); |
| | | // printf("[BOOT] UDP Server: %u.%u.%u.%u:%u\r\n", ip0, ip1, ip2, ip3, udp_port); |
| | | // printf("[BOOT] TCP Server: %u.%u.%u.%u:%u\r\n", tip0, tip1, tip2, tip3, tcp_port); |
| | | HIDO_Debug2("[BOOT] Version: %u\r\n", version); |
| | | HIDO_Debug2("[BOOT] DeviceID: %u\r\n", dev_id); |
| | | HIDO_Debug2("[BOOT] UDP Server: %u.%u.%u.%u:%u\r\n", ip0, ip1, ip2, ip3, udp_port); |
| | | HIDO_Debug2("[BOOT] TCP Server: %u.%u.%u.%u:%u\r\n", tip0, tip1, tip2, tip3, tcp_port); |
| | | } |
| | | TaskHandle_t xTaskHandle = NULL; |
| | | |