Skip to content

Commit

Permalink
Fix spell checks
Browse files Browse the repository at this point in the history
  • Loading branch information
kar-rahul-aws committed Feb 18, 2024
1 parent e122f59 commit f1b9c18
Show file tree
Hide file tree
Showing 5 changed files with 201 additions and 206 deletions.
95 changes: 47 additions & 48 deletions FreeRTOS/Demo/Common/Minimal/AbortDelay.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* FreeRTOS V202111.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* FreeRTOS V202212.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
Expand Down Expand Up @@ -420,18 +420,18 @@
EventBits_t xBitsToWaitFor = ( EventBits_t ) 0x01, xReturn;

#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
{
static StaticEventGroup_t xEventGroupBuffer;
{
static StaticEventGroup_t xEventGroupBuffer;

/* Create the event group. Statically allocated memory is used so the
* creation cannot fail. */
xEventGroup = xEventGroupCreateStatic( &xEventGroupBuffer );
}
/* Create the event group. Statically allocated memory is used so the
* creation cannot fail. */
xEventGroup = xEventGroupCreateStatic( &xEventGroupBuffer );
}
#else
{
xEventGroup = xEventGroupCreate();
configASSERT( xEventGroup );
}
{
xEventGroup = xEventGroupCreate();
configASSERT( xEventGroup );
}
#endif /* if ( configSUPPORT_STATIC_ALLOCATION == 1 ) */

/* Note the time before the delay so the length of the delay is known. */
Expand Down Expand Up @@ -488,25 +488,25 @@
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 ];
{
/* 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. */
StaticStreamBuffer_t xStreamBufferStruct;
/* The variable used to hold the stream buffer structure. */
StaticStreamBuffer_t xStreamBufferStruct;


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

/* Note the time before the delay so the length of the delay is known. */
Expand Down Expand Up @@ -563,19 +563,19 @@
uint8_t ucItemToQueue;

#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
{
static StaticQueue_t xQueueBuffer;
static uint8_t ucQueueStorage[ sizeof( uint8_t ) ];
{
static StaticQueue_t xQueueBuffer;
static uint8_t ucQueueStorage[ sizeof( uint8_t ) ];

/* Create the queue. Statically allocated memory is used so the
* creation cannot fail. */
xQueue = xQueueCreateStatic( xQueueLength, sizeof( uint8_t ), ucQueueStorage, &xQueueBuffer );
}
/* Create the queue. Statically allocated memory is used so the
* creation cannot fail. */
xQueue = xQueueCreateStatic( xQueueLength, sizeof( uint8_t ), ucQueueStorage, &xQueueBuffer );
}
#else
{
xQueue = xQueueCreate( xQueueLength, sizeof( uint8_t ) );
configASSERT( xQueue );
}
{
xQueue = xQueueCreate( xQueueLength, sizeof( uint8_t ) );
configASSERT( xQueue );
}
#endif /* if ( configSUPPORT_STATIC_ALLOCATION == 1 ) */

/* This function tests aborting when in the blocked state waiting to send,
Expand Down Expand Up @@ -639,17 +639,17 @@
SemaphoreHandle_t xSemaphore;

#if ( configSUPPORT_STATIC_ALLOCATION == 1 )
{
static StaticSemaphore_t xSemaphoreBuffer;
{
static StaticSemaphore_t xSemaphoreBuffer;

/* Create the semaphore. Statically allocated memory is used so the
* creation cannot fail. */
xSemaphore = xSemaphoreCreateBinaryStatic( &xSemaphoreBuffer );
}
/* Create the semaphore. Statically allocated memory is used so the
* creation cannot fail. */
xSemaphore = xSemaphoreCreateBinaryStatic( &xSemaphoreBuffer );
}
#else
{
xSemaphore = xSemaphoreCreateBinary();
}
{
xSemaphore = xSemaphoreCreateBinary();
}
#endif

/* Note the time before the delay so the length of the delay is known. */
Expand Down Expand Up @@ -797,4 +797,3 @@
}

#endif /* INCLUDE_xTaskAbortDelay == 1 */

37 changes: 18 additions & 19 deletions FreeRTOS/Demo/Common/Minimal/IntSemTest.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* FreeRTOS V202111.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* FreeRTOS V202212.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
Expand Down Expand Up @@ -177,9 +177,9 @@ static void prvTakeAndGiveInTheSameOrder( void )
/* Ensure the slave is suspended, and that this task is running at the
* lower priority as expected as the start conditions. */
#if ( INCLUDE_eTaskGetState == 1 )
{
configASSERT( eTaskGetState( xSlaveHandle ) == eSuspended );
}
{
configASSERT( eTaskGetState( xSlaveHandle ) == eSuspended );
}
#endif /* INCLUDE_eTaskGetState */

if( uxTaskPriorityGet( NULL ) != intsemMASTER_PRIORITY )
Expand All @@ -200,9 +200,9 @@ static void prvTakeAndGiveInTheSameOrder( void )
/* The slave has the higher priority so should now have executed and
* blocked on the semaphore. */
#if ( INCLUDE_eTaskGetState == 1 )
{
configASSERT( eTaskGetState( xSlaveHandle ) == eBlocked );
}
{
configASSERT( eTaskGetState( xSlaveHandle ) == eBlocked );
}
#endif /* INCLUDE_eTaskGetState */

/* This task should now have inherited the priority of the slave
Expand Down Expand Up @@ -264,9 +264,9 @@ static void prvTakeAndGiveInTheSameOrder( void )
}

#if ( INCLUDE_eTaskGetState == 1 )
{
configASSERT( eTaskGetState( xSlaveHandle ) == eSuspended );
}
{
configASSERT( eTaskGetState( xSlaveHandle ) == eSuspended );
}
#endif /* INCLUDE_eTaskGetState */

/* Reset the mutex ready for the next round. */
Expand All @@ -279,9 +279,9 @@ static void prvTakeAndGiveInTheOppositeOrder( void )
/* Ensure the slave is suspended, and that this task is running at the
* lower priority as expected as the start conditions. */
#if ( INCLUDE_eTaskGetState == 1 )
{
configASSERT( eTaskGetState( xSlaveHandle ) == eSuspended );
}
{
configASSERT( eTaskGetState( xSlaveHandle ) == eSuspended );
}
#endif /* INCLUDE_eTaskGetState */

if( uxTaskPriorityGet( NULL ) != intsemMASTER_PRIORITY )
Expand All @@ -302,9 +302,9 @@ static void prvTakeAndGiveInTheOppositeOrder( void )
/* The slave has the higher priority so should now have executed and
* blocked on the semaphore. */
#if ( INCLUDE_eTaskGetState == 1 )
{
configASSERT( eTaskGetState( xSlaveHandle ) == eBlocked );
}
{
configASSERT( eTaskGetState( xSlaveHandle ) == eBlocked );
}
#endif /* INCLUDE_eTaskGetState */

/* This task should now have inherited the priority of the slave
Expand Down Expand Up @@ -457,7 +457,7 @@ static void vInterruptCountingSemaphoreTask( void * pvParameters )
xSemaphoreTake( xISRCountingSemaphore, portMAX_DELAY );
xOkToGiveCountingSemaphore = pdFALSE;

/* Reset the priority so as not to disturbe other tests too much. */
/* Reset the priority so as not to disturb other tests too much. */
vTaskPrioritySet( NULL, tskIDLE_PRIORITY );

ulCountingSemaphoreLoops++;
Expand Down Expand Up @@ -535,4 +535,3 @@ BaseType_t xAreInterruptSemaphoreTasksStillRunning( void )

return xReturn;
}

Loading

0 comments on commit f1b9c18

Please sign in to comment.