1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| #include "FreeRTOS.h" #include "task.h"
#define USER_LED_TASK_PRIO 2 #define USER_LED_TASK_STACK_SIZE 120 TaskHandle_t user_led_handle;
void xtp_create_task(void) { xTaskCreate( (TaskFunction_t)led_task, (const char *)"led_task", (uint16_t)USER_LED_TASK_STACK_SIZE, (void *)NULL, (UBaseType_t)USER_LED_TASK_PRIO, (TaskHandle_t *)user_led_handle); }
|