osThreadGetStackSpace() function
Get available stack space of a thread based on stack watermark recording during execution.
Arguments
thread_id
thread ID obtained by osThreadNew or osThreadGetId.
Return value
remaining stack space in bytes.
osThreadGetStackSpace() calls 1 function:
![]()
osThreadGetStackSpace()
osThreadGetStackSpace():
![]()
osThreadGetStackSpace()