Skip to content

Commit 36b803e

Browse files
NikJen26Niklas Jenneractions-usermoninom1
authored
fix AbortDelay.c Test (FreeRTOS#1237)
* fix AbortDelay.c Test * Uncrustify: triggered by comment. * Update comment * Fix formatting --------- Co-authored-by: Niklas Jenner <[email protected]> Co-authored-by: GitHub Action <[email protected]> Co-authored-by: Monika Singh <[email protected]>
1 parent 82099c3 commit 36b803e

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

FreeRTOS/Demo/Common/Minimal/AbortDelay.c

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -488,20 +488,21 @@
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 );

0 commit comments

Comments
 (0)