| | |
| | | #include "SBUS.h" |
| | | #include "pwm_ctrol.h" |
| | | #include "PythonLink.h" |
| | | static osSemaphoreId_t g_semaphoreHandle = NULL; |
| | | #include "motion_control_task.h" |
| | | osSemaphoreId_t g_semaphoreHandle = NULL; |
| | | TaskHandle_t g_app_task_handle = NULL; |
| | | |
| | | extern uint8_t restart_num; |
| | | void IdleTask(void) |
| | | { |
| | |
| | | BT_Init(); |
| | | SBUS_Init(); |
| | | PythonLink_Init(); |
| | | MotionControl_TaskInit(); |
| | | while (1) |
| | | { |
| | | //HIDO_UINT32 timeout = HIDO_TimerGetNearestTimeout(1000); |
| | |
| | | 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; |
| | | |
| | | osSemaphoreAttr_t semaphore_attr = { |
| | | .name = "MySemaphore", |
| | | .attr_bits = 0, |
| | |
| | | 2048, |
| | | NULL, |
| | | tskIDLE_PRIORITY + 1, |
| | | &xTaskHandle); |
| | | &g_app_task_handle); |
| | | } |