blob: 8930b0b0db96e72cb57c28e8bc325e244ae00d53 [file] [log] [blame]
#include <FreeRTOS-Compat/FreeRTOS.h>
#if (CHERIOT_FREERTOS_SEMAPHORE + CHERIOT_FREERTOS_MUTEX + \
CHERIOT_FREERTOS_RECURSIVE_MUTEX) == 1
#if CHERIOT_FREERTOS_SEMAPHORE == 1
_Static_assert(sizeof(StaticSemaphore_t) == sizeof(struct CountingSemaphoreState);
#elif CHERIOT_FREERTOS_MUTEX == 1
_Static_assert(sizeof(StaticSemaphore_t) == sizeof(struct FlagLockState));
#else
_Static_assert(sizeof(StaticSemaphore_t) == sizeof(struct RecursiveMutexState));
#endif
#endif