Skip to content

Commit

Permalink
Update format
Browse files Browse the repository at this point in the history
  • Loading branch information
chinglee-iot committed Aug 31, 2023
1 parent 2dcae64 commit e9d7831
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
#else

#if ( configNUMBER_OF_CORES == 1 )
/* pxTCB is not used since the task can only runs on core 0 in single core. */

/* pxTCB is not used since the task can only runs on core 0 in single core. */
#define taskYIELD_IF_USING_PREEMPTION( pxTCB ) portYIELD_WITHIN_API()

#define taskYIELD_FOR_TASK_IF_USING_PREEMPTION( pxTCB ) \
Expand All @@ -81,10 +82,15 @@
mtCOVERAGE_TEST_MARKER(); \
} \
} while( 0 )

#else /* if ( configNUMBER_OF_CORES == 1 ) */
/* Yield the core on which the task is running. */

/* Yield the core on which this task is running. */
#define taskYIELD_IF_USING_PREEMPTION( pxTCB ) prvYieldCore( ( pxTCB )->xTaskRunState )

/* Yield for the task if a running task has priority lower than this task. */
#define taskYIELD_FOR_TASK_IF_USING_PREEMPTION( pxTCB ) prvYieldForTask( pxTCB )

#endif /* #if ( configNUMBER_OF_CORES == 1 ) */

#endif /* if ( configUSE_PREEMPTION == 0 ) */
Expand Down

0 comments on commit e9d7831

Please sign in to comment.