pxEventBits->uxEventBits = 0;\r
vListInitialise( &( pxEventBits->xTasksWaitingForBits ) );\r
\r
- if( pxStaticEventGroup == NULL )\r
+ #if( configSUPPORT_STATIC_ALLOCATION == 1 )\r
{\r
- pxEventBits->ucStaticallyAllocated = pdFALSE;\r
- }\r
- else\r
- {\r
- pxEventBits->ucStaticallyAllocated = pdTRUE;\r
+ if( pxStaticEventGroup == NULL )\r
+ {\r
+ pxEventBits->ucStaticallyAllocated = pdFALSE;\r
+ }\r
+ else\r
+ {\r
+ pxEventBits->ucStaticallyAllocated = pdTRUE;\r
+ }\r
}\r
+ #endif /* configSUPPORT_STATIC_ALLOCATION */\r
\r
traceEVENT_GROUP_CREATE( pxEventBits );\r
}\r
}\r
\r
/* Only free the memory if it was allocated dynamically. */\r
- if( pxEventBits->ucStaticallyAllocated == pdFALSE )\r
+ #if( configSUPPORT_STATIC_ALLOCATION == 1 )\r
+ {\r
+ if( pxEventBits->ucStaticallyAllocated == pdFALSE )\r
+ {\r
+ vPortFree( pxEventBits );\r
+ }\r
+ }\r
+ #else\r
{\r
vPortFree( pxEventBits );\r
}\r
+ #endif /* configSUPPORT_STATIC_ALLOCATION */\r
}\r
( void ) xTaskResumeAll();\r
}\r