...
Code Block | ||||
---|---|---|---|---|
| ||||
//=========================== variables ======================================= #ifdef USE_FREERTOS #define tskUDPECHOAPP_PRIORITY configMAX_PRIORITIES - 4 TaskHandle_t xAppUechoHandle; // task //=========================== prototypes ====================================== static void vUechoTask(void* pvParameters); #endif //=========================== public ========================================== void uecho_init() { #ifdef USE_FREERTOS xTaskCreate(vUechoTask, "Uecho", 50, NULL, tskUDPECHOAPP_PRIORITY, &(xAppUechoHandle)); #endif } #ifdef USE_FREERTOS static void vUechoTask(void* pvParameters) { uint8_t count = 0; while (1) { debugpins_fsm_toggle(); vTaskDelay(10000); leds_debug_toggle(); udpecho_sendHello(count++); } } #endif |
...