Skip to content

Commit

Permalink
fix AbortDelay.c Test (FreeRTOS#1237)
Browse files Browse the repository at this point in the history
* fix AbortDelay.c Test

* Uncrustify: triggered by comment.

* Update comment

* Fix formatting

---------

Co-authored-by: Niklas Jenner <niklas.jenner@ifta.com>
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Monika Singh <moninom@amazon.com>
  • Loading branch information
4 people authored Jul 22, 2024
1 parent 82099c3 commit 36b803e
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions FreeRTOS/Demo/Common/Minimal/AbortDelay.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,20 +488,21 @@
uint8_t uxRxData;

#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
{
/* Defines the memory that will actually hold the streams within the
* stream buffer. */
static uint8_t ucStorageBuffer[ sizeof( configMESSAGE_BUFFER_LENGTH_TYPE ) + 1 ];

/* The variable used to hold the stream buffer structure. */
/* The variable used to hold the stream buffer structure.
* This control information is valid as long as xStreamBuffer
* is valid. */
StaticStreamBuffer_t xStreamBufferStruct;


xStreamBuffer = xStreamBufferCreateStatic( sizeof( ucStorageBuffer ),
xTriggerLevelBytes,
ucStorageBuffer,
&xStreamBufferStruct );
}
{
/* Defines the memory that will actually hold the streams within the
* stream buffer. */
static uint8_t ucStorageBuffer[ sizeof( configMESSAGE_BUFFER_LENGTH_TYPE ) + 1 ];

xStreamBuffer = xStreamBufferCreateStatic( sizeof( ucStorageBuffer ),
xTriggerLevelBytes,
ucStorageBuffer,
&xStreamBufferStruct );
}
#else /* if ( configSUPPORT_STATIC_ALLOCATION == 1 ) */
{
xStreamBuffer = xStreamBufferCreate( sizeof( uint8_t ), xTriggerLevelBytes );
Expand Down

0 comments on commit 36b803e

Please sign in to comment.