File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed
FreeRTOS/Demo/Common/Minimal Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change 488488 uint8_t uxRxData ;
489489
490490 #if ( configSUPPORT_STATIC_ALLOCATION == 1 )
491- {
492- /* Defines the memory that will actually hold the streams within the
493- * stream buffer. */
494- static uint8_t ucStorageBuffer [ sizeof ( configMESSAGE_BUFFER_LENGTH_TYPE ) + 1 ];
495491
496- /* The variable used to hold the stream buffer structure. */
492+ /* The variable used to hold the stream buffer structure.
493+ * This control information is valid as long as xStreamBuffer
494+ * is valid. */
497495 StaticStreamBuffer_t xStreamBufferStruct ;
498-
499-
500- xStreamBuffer = xStreamBufferCreateStatic ( sizeof ( ucStorageBuffer ),
501- xTriggerLevelBytes ,
502- ucStorageBuffer ,
503- & xStreamBufferStruct );
504- }
496+ {
497+ /* Defines the memory that will actually hold the streams within the
498+ * stream buffer. */
499+ static uint8_t ucStorageBuffer [ sizeof ( configMESSAGE_BUFFER_LENGTH_TYPE ) + 1 ];
500+
501+ xStreamBuffer = xStreamBufferCreateStatic ( sizeof ( ucStorageBuffer ),
502+ xTriggerLevelBytes ,
503+ ucStorageBuffer ,
504+ & xStreamBufferStruct );
505+ }
505506 #else /* if ( configSUPPORT_STATIC_ALLOCATION == 1 ) */
506507 {
507508 xStreamBuffer = xStreamBufferCreate ( sizeof ( uint8_t ), xTriggerLevelBytes );
You can’t perform that action at this time.
0 commit comments