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 488
488
uint8_t uxRxData ;
489
489
490
490
#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 ];
495
491
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. */
497
495
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
+ }
505
506
#else /* if ( configSUPPORT_STATIC_ALLOCATION == 1 ) */
506
507
{
507
508
xStreamBuffer = xStreamBufferCreate ( sizeof ( uint8_t ), xTriggerLevelBytes );
You can’t perform that action at this time.
0 commit comments