Closed r-ben closed 8 years ago
Hello, it works as expected for me and returns the task handle with the last parameter (address of task handle passed). Maybe you did something wrong? Below is an example code I use:
static TaskHandle_t handle; if (FRTOS1_xTaskCreate(BleUartTask, "BleUart", configMINIMAL_STACK_SIZE+100, NULL, tskIDLE_PRIORITY+1, &handle) != pdPASS) { for(;;){} /* error */ }
I hope this helps, Erich
Hello Erich, Yes, indeed! However, the '&' for the handle disappeared in my code.
Many thanks for your fast response, Rolf
After updating to recent PEComponents from 2015-11-22, xTaskCreate() doesn't return the task handle any more. Maybe it's a bug in FreeRTOS 8.2.3.
Reading the task handle with xTaskGetCurrentTaskHandle() from inside the task is working.