mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-12 09:07:46 -04:00
FreeRTOS Kernel Spelling Update
* Added spell check to kernel repository. * Fixed small spelling errors in various kernel source files. Note: Only kernel files are checked for spelling, and portable files are ignored.
This commit is contained in:
parent
85768bb3e0
commit
73bb2f47b3
6 changed files with 3127 additions and 7 deletions
38
.github/workflows/ci.yml
vendored
Normal file
38
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
name: CI Checks
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["**"]
|
||||||
|
pull_request:
|
||||||
|
branches: [master]
|
||||||
|
workflow_dispatch:
|
||||||
|
jobs:
|
||||||
|
spell-check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Parent Repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: master
|
||||||
|
repository: aws/aws-iot-device-sdk-embedded-C
|
||||||
|
path: main
|
||||||
|
- name: Clone This Repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: ./kernel
|
||||||
|
- name: Install spell
|
||||||
|
run: |
|
||||||
|
sudo apt-get install spell
|
||||||
|
sudo apt-get install util-linux
|
||||||
|
- name: Check spelling
|
||||||
|
run: |
|
||||||
|
PATH=$PATH:main/tools/spell
|
||||||
|
ls kernel
|
||||||
|
# Make sure that the portable directory is not included in the spellcheck.
|
||||||
|
sed -i 's/find $DIRNAME/find $DIRNAME -not -path '*portable*'/g' main/tools/spell/find-unknown-comment-words
|
||||||
|
find-unknown-comment-words --directory kernel/
|
||||||
|
if [ "$?" = "0" ]; then
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
|
@ -670,7 +670,7 @@ EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup,
|
||||||
* xEventGroupSync( xEventBits, TASK_1_BIT, ALL_SYNC_BITS, portMAX_DELAY );
|
* xEventGroupSync( xEventBits, TASK_1_BIT, ALL_SYNC_BITS, portMAX_DELAY );
|
||||||
*
|
*
|
||||||
* // xEventGroupSync() was called with an indefinite block time, so
|
* // xEventGroupSync() was called with an indefinite block time, so
|
||||||
* // this task will only reach here if the syncrhonisation was made by all
|
* // this task will only reach here if the synchronisation was made by all
|
||||||
* // three tasks, so there is no need to test the return value.
|
* // three tasks, so there is no need to test the return value.
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
|
@ -689,7 +689,7 @@ EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup,
|
||||||
* xEventGroupSync( xEventBits, TASK_2_BIT, ALL_SYNC_BITS, portMAX_DELAY );
|
* xEventGroupSync( xEventBits, TASK_2_BIT, ALL_SYNC_BITS, portMAX_DELAY );
|
||||||
*
|
*
|
||||||
* // xEventGroupSync() was called with an indefinite block time, so
|
* // xEventGroupSync() was called with an indefinite block time, so
|
||||||
* // this task will only reach here if the syncrhonisation was made by all
|
* // this task will only reach here if the synchronisation was made by all
|
||||||
* // three tasks, so there is no need to test the return value.
|
* // three tasks, so there is no need to test the return value.
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
|
|
|
@ -1535,7 +1535,7 @@ BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex ) PRIVILEGED_FUNCTION;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Generic version of the function used to creaet a queue using dynamic memory
|
* Generic version of the function used to create a queue using dynamic memory
|
||||||
* allocation. This is called by other functions and macros that create other
|
* allocation. This is called by other functions and macros that create other
|
||||||
* RTOS objects that use the queue structure as their base.
|
* RTOS objects that use the queue structure as their base.
|
||||||
*/
|
*/
|
||||||
|
@ -1546,7 +1546,7 @@ BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex ) PRIVILEGED_FUNCTION;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Generic version of the function used to creaet a queue using dynamic memory
|
* Generic version of the function used to create a queue using dynamic memory
|
||||||
* allocation. This is called by other functions and macros that create other
|
* allocation. This is called by other functions and macros that create other
|
||||||
* RTOS objects that use the queue structure as their base.
|
* RTOS objects that use the queue structure as their base.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -3023,7 +3023,7 @@ eSleepModeStatus eTaskConfirmSleepModeStatus( void ) PRIVILEGED_FUNCTION;
|
||||||
TaskHandle_t pvTaskIncrementMutexHeldCount( void ) PRIVILEGED_FUNCTION;
|
TaskHandle_t pvTaskIncrementMutexHeldCount( void ) PRIVILEGED_FUNCTION;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* For internal use only. Same as vTaskSetTimeOutState(), but without a critial
|
* For internal use only. Same as vTaskSetTimeOutState(), but without a critical
|
||||||
* section.
|
* section.
|
||||||
*/
|
*/
|
||||||
void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut ) PRIVILEGED_FUNCTION;
|
void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut ) PRIVILEGED_FUNCTION;
|
||||||
|
|
3082
lexicon.txt
Normal file
3082
lexicon.txt
Normal file
File diff suppressed because it is too large
Load diff
|
@ -51,7 +51,7 @@
|
||||||
/* If the user has not provided application specific Rx notification macros,
|
/* If the user has not provided application specific Rx notification macros,
|
||||||
* or #defined the notification macros away, them provide default implementations
|
* or #defined the notification macros away, them provide default implementations
|
||||||
* that uses task notifications. */
|
* that uses task notifications. */
|
||||||
/*lint -save -e9026 Function like macros allowed and needed here so they can be overidden. */
|
/*lint -save -e9026 Function like macros allowed and needed here so they can be overridden. */
|
||||||
#ifndef sbRECEIVE_COMPLETED
|
#ifndef sbRECEIVE_COMPLETED
|
||||||
#define sbRECEIVE_COMPLETED( pxStreamBuffer ) \
|
#define sbRECEIVE_COMPLETED( pxStreamBuffer ) \
|
||||||
vTaskSuspendAll(); \
|
vTaskSuspendAll(); \
|
||||||
|
@ -750,7 +750,7 @@ static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamBuffer,
|
||||||
if( xShouldWrite != pdFALSE )
|
if( xShouldWrite != pdFALSE )
|
||||||
{
|
{
|
||||||
/* Writes the data itself. */
|
/* Writes the data itself. */
|
||||||
xReturn = prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) pvTxData, xDataLengthBytes ); /*lint !e9079 Storage buffer is implemented as uint8_t for ease of sizing, alighment and access. */
|
xReturn = prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) pvTxData, xDataLengthBytes ); /*lint !e9079 Storage buffer is implemented as uint8_t for ease of sizing, alignment and access. */
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue