Skip to content

Instantly share code, notes, and snippets.

@perimeno
perimeno / task.h
Last active May 30, 2021 21:58 — forked from Lauszus/task.h
FreeRTOS get stack size
/**
* task.h
* <PRE>UBaseType_t uxTaskGetStackSize( TaskHandle_t xTask );</PRE>
*
* INCLUDE_pxTaskGetStackSize must be set to 1 in FreeRTOSConfig.h for
* this function to be available.
*
* Returns the stack size associated with xTask in bytes.
*
* @param xTask Handle of the task associated with the stack to be checked.