mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Add functions to get the buffers of statically created objects (#641)
Added various ...GetStaticBuffer() functions to get the buffers of statically created objects. --------- Co-authored-by: Paul Bartell <pbartell@amazon.com> Co-authored-by: Nikhil Kamath <110539926+amazonKamath@users.noreply.github.com> Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
parent
d4d5e43292
commit
9488ba22d8
13 changed files with 400 additions and 0 deletions
|
@ -1509,6 +1509,36 @@ char * pcTaskGetName( TaskHandle_t xTaskToQuery ) PRIVILEGED_FUNCTION; /*lint !e
|
|||
*/
|
||||
TaskHandle_t xTaskGetHandle( const char * pcNameToQuery ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
|
||||
|
||||
/**
|
||||
* task. h
|
||||
* @code{c}
|
||||
* BaseType_t xTaskGetStaticBuffers( TaskHandle_t xTask,
|
||||
* StackType_t ** ppuxStackBuffer,
|
||||
* StaticTask_t ** ppxTaskBuffer );
|
||||
* @endcode
|
||||
*
|
||||
* Retrieve pointers to a statically created task's data structure
|
||||
* buffer and stack buffer. These are the same buffers that are supplied
|
||||
* at the time of creation.
|
||||
*
|
||||
* @param xTask The task for which to retrieve the buffers.
|
||||
*
|
||||
* @param ppuxStackBuffer Used to return a pointer to the task's stack buffer.
|
||||
*
|
||||
* @param ppxTaskBuffer Used to return a pointer to the task's data structure
|
||||
* buffer.
|
||||
*
|
||||
* @return pdTRUE if buffers were retrieved, pdFALSE otherwise.
|
||||
*
|
||||
* \defgroup xTaskGetStaticBuffers xTaskGetStaticBuffers
|
||||
* \ingroup TaskUtils
|
||||
*/
|
||||
#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
|
||||
BaseType_t xTaskGetStaticBuffers( TaskHandle_t xTask,
|
||||
StackType_t ** ppuxStackBuffer,
|
||||
StaticTask_t ** ppxTaskBuffer ) PRIVILEGED_FUNCTION;
|
||||
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
||||
|
||||
/**
|
||||
* task.h
|
||||
* @code{c}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue