Download FreeRTOS
 

Quality RTOS & Embedded Software

KERNEL
WHAT'S NEW
FreeRTOS-Plus-TCP now has unified IPv4 and IPv6 functionalities and multi-interface support.
Achieving Unbrickable MCU FOTA for your FreeRTOS-powered Firmware:
FreeRTOS 202012 LTS end of support announced.
FreeRTOS website now available in Simplified Chinese
New FreeRTOS Long Term Support version now available.

xSemaphoreGetStaticBuffer()
[Semaphores]


semphr.h

 BaseType_t xSemaphoreGetStaticBuffer( SemaphoreHandle_t xSemaphore,
                                       StaticSemaphoreBuffer_t ** ppxSemaphoreBuffer );

configSUPPORT_STATIC_ALLOCATION must be defined as 1 for this function to be available. See the RTOS Configuration documentation for more information.

Retrieve the pointer to a statically created binary semaphore's, counting semaphore's, or mutex's data structure buffer. This is the same buffer that is supplied at the time of creation.

Parameters:
xSemaphore   The semaphore whose data structure buffer will be retrieved.
ppxSemaphoreBuffer   Used to return a pointer to the semaphore's data structure buffer.
Returns:
pdTRUE if the buffer was retrieved, pdFALSE otherwise.





Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.