mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-07-10 13:29:45 -04:00
fix copy-paste comment typos in xTaskGetApplicationTaskTagFromISR and xTaskGetApplicationTaskTag (#1446)
This commit is contained in:
parent
a50edad08b
commit
d72263b404
1 changed files with 4 additions and 4 deletions
8
tasks.c
8
tasks.c
|
|
@ -5035,11 +5035,11 @@ BaseType_t xTaskIncrementTick( void )
|
||||||
|
|
||||||
traceENTER_xTaskGetApplicationTaskTag( xTask );
|
traceENTER_xTaskGetApplicationTaskTag( xTask );
|
||||||
|
|
||||||
/* If xTask is NULL then set the calling task's hook. */
|
/* If xTask is NULL then get the calling task's hook. */
|
||||||
pxTCB = prvGetTCBFromHandle( xTask );
|
pxTCB = prvGetTCBFromHandle( xTask );
|
||||||
configASSERT( pxTCB != NULL );
|
configASSERT( pxTCB != NULL );
|
||||||
|
|
||||||
/* Save the hook function in the TCB. A critical section is required as
|
/* Access the hook function in the TCB. A critical section is required as
|
||||||
* the value can be accessed from an interrupt. */
|
* the value can be accessed from an interrupt. */
|
||||||
taskENTER_CRITICAL();
|
taskENTER_CRITICAL();
|
||||||
{
|
{
|
||||||
|
|
@ -5065,11 +5065,11 @@ BaseType_t xTaskIncrementTick( void )
|
||||||
|
|
||||||
traceENTER_xTaskGetApplicationTaskTagFromISR( xTask );
|
traceENTER_xTaskGetApplicationTaskTagFromISR( xTask );
|
||||||
|
|
||||||
/* If xTask is NULL then set the calling task's hook. */
|
/* If xTask is NULL then get the calling task's hook. */
|
||||||
pxTCB = prvGetTCBFromHandle( xTask );
|
pxTCB = prvGetTCBFromHandle( xTask );
|
||||||
configASSERT( pxTCB != NULL );
|
configASSERT( pxTCB != NULL );
|
||||||
|
|
||||||
/* Save the hook function in the TCB. A critical section is required as
|
/* Access the hook function in the TCB. A critical section is required as
|
||||||
* the value can be accessed from an interrupt. */
|
* the value can be accessed from an interrupt. */
|
||||||
/* MISRA Ref 4.7.1 [Return value shall be checked] */
|
/* MISRA Ref 4.7.1 [Return value shall be checked] */
|
||||||
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#dir-47 */
|
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#dir-47 */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue