Skip to content

Commit f988394

Browse files
committed
Fix spelling issues.
1 parent 28efb54 commit f988394

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

FreeRTOS/Source/include/FreeRTOS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ extern "C" {
241241
#define configASSERT_DEFINED 1
242242
#endif
243243

244-
/* configPRECONDITION should be resolve to configASSERT.
244+
/* configPRECONDITION should be defined as configASSERT.
245245
The CBMC proofs need a way to track assumptions and assertions.
246246
A configPRECONDITION statement should express an implicit invariant or
247247
assumption made. A configASSERT statement should express an invariant that must

FreeRTOS/Source/include/task.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2213,7 +2213,7 @@ BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask );
22132213
* Clears the bits specified by the ulBitsToClear bit mask in the notification
22142214
* value of the task referenced by xTask.
22152215
*
2216-
* Set ulBitsToClear to to 0xffffffff (UINT_MAX on 32-bit architectures) to clear
2216+
* Set ulBitsToClear to 0xffffffff (UINT_MAX on 32-bit architectures) to clear
22172217
* the notification value to 0. Set ulBitsToClear to 0 to query the task's
22182218
* notification value without clearing any bits.
22192219
*

FreeRTOS/Source/portable/MSVC-MingW/port.c

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ typedef struct
9595
/* Handle of the thread that executes the task. */
9696
void *pvThread;
9797

98-
/* Event used to makes sure the thread does not execute past a yield point
98+
/* Event used to make sure the thread does not execute past a yield point
9999
between the call to SuspendThread() to suspend the thread and the
100100
asynchronous SuspendThread() operation actually being performed. */
101101
void *pvYieldEvent;
@@ -394,7 +394,7 @@ CONTEXT xContext;
394394
xInsideInterrupt = pdFALSE;
395395
WaitForMultipleObjects( sizeof( pvObjectList ) / sizeof( void * ), pvObjectList, TRUE, INFINITE );
396396

397-
/* Cannot be in a critical section to get here. Tasks that exist a
397+
/* Cannot be in a critical section to get here. Tasks that exit a
398398
critical section will block on a yield mutex to wait for an interrupt to
399399
process if an interrupt was set pending while the task was inside the
400400
critical section. xInsideInterrupt prevents interrupts that contain
@@ -456,12 +456,11 @@ CONTEXT xContext;
456456

457457
/* Ensure the thread is actually suspended by performing a
458458
synchronous operation that can only complete when the thread is
459-
actually suspended. The below code asks for dummy register
460-
data. Experimentation shows that these two lines don't appear
459+
actually suspended. The code below asks for dummy register
460+
data. Experimentation shows that these two lines don't appear
461461
to do anything now, but according to
462462
https://devblogs.microsoft.com/oldnewthing/20150205-00/?p=44743
463-
they do - so as they do not harm (slight run-time hit) they have
464-
been left it. */
463+
they do - so as they do not harm (slight run-time hit). */
465464
xContext.ContextFlags = CONTEXT_INTEGER;
466465
( void ) GetThreadContext( pxThreadState->pvThread, &xContext );
467466

@@ -599,7 +598,7 @@ ThreadState_t *pxThreadState = ( ThreadState_t *) *( ( size_t * ) pxCurrentTCB )
599598
ReleaseMutex( pvInterruptEventMutex );
600599
if( ulCriticalNesting == portNO_CRITICAL_NESTING )
601600
{
602-
/* An interrupt was pended so ensure to block to alow it to
601+
/* An interrupt was pended so ensure to block to allow it to
603602
execute. In most cases the (simulated) interrupt will have
604603
executed before the next line is reached - so this is just to make
605604
sure. */
@@ -669,7 +668,7 @@ int32_t lMutexNeedsReleasing, lWaitForYield = pdFALSE;
669668
pvInterruptEventMutex is released as it waits on both
670669
pvInterruptEventMutex and pvInterruptEvent.
671670
pvInterruptEvent is only set when the simulated
672-
interrupt is pendeded if the interrupt is pended
671+
interrupt is pended if the interrupt is pended
673672
from outside a critical section - hence it is set
674673
here. */
675674
SetEvent( pvInterruptEvent );

0 commit comments

Comments
 (0)