How to get current task handle in FreeRTOS
Simply use xTaskGetCurrentTaskHandle()
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
TaskHandle_t myTaskHandle = xTaskGetCurrentTaskHandle();
Simply use xTaskGetCurrentTaskHandle()
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
TaskHandle_t myTaskHandle = xTaskGetCurrentTaskHandle();