mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Move trace macro after declaration (#820)
* Move trace macro after declaration to comply with ISO C90
This commit is contained in:
parent
30e13dac2b
commit
317bc0c89c
12
tasks.c
12
tasks.c
|
@ -2462,12 +2462,12 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
|
||||||
UBaseType_t uxCurrentBasePriority, uxPriorityUsedOnEntry;
|
UBaseType_t uxCurrentBasePriority, uxPriorityUsedOnEntry;
|
||||||
BaseType_t xYieldRequired = pdFALSE;
|
BaseType_t xYieldRequired = pdFALSE;
|
||||||
|
|
||||||
traceENTER_vTaskPrioritySet( xTask, uxNewPriority );
|
|
||||||
|
|
||||||
#if ( configNUMBER_OF_CORES > 1 )
|
#if ( configNUMBER_OF_CORES > 1 )
|
||||||
BaseType_t xYieldForTask = pdFALSE;
|
BaseType_t xYieldForTask = pdFALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
traceENTER_vTaskPrioritySet( xTask, uxNewPriority );
|
||||||
|
|
||||||
configASSERT( uxNewPriority < configMAX_PRIORITIES );
|
configASSERT( uxNewPriority < configMAX_PRIORITIES );
|
||||||
|
|
||||||
/* Ensure the new priority is valid. */
|
/* Ensure the new priority is valid. */
|
||||||
|
@ -4376,12 +4376,12 @@ BaseType_t xTaskIncrementTick( void )
|
||||||
TickType_t xItemValue;
|
TickType_t xItemValue;
|
||||||
BaseType_t xSwitchRequired = pdFALSE;
|
BaseType_t xSwitchRequired = pdFALSE;
|
||||||
|
|
||||||
traceENTER_xTaskIncrementTick();
|
|
||||||
|
|
||||||
#if ( configUSE_PREEMPTION == 1 ) && ( configNUMBER_OF_CORES > 1 )
|
#if ( configUSE_PREEMPTION == 1 ) && ( configNUMBER_OF_CORES > 1 )
|
||||||
BaseType_t xYieldRequiredForCore[ configNUMBER_OF_CORES ] = { pdFALSE };
|
BaseType_t xYieldRequiredForCore[ configNUMBER_OF_CORES ] = { pdFALSE };
|
||||||
#endif /* #if ( configUSE_PREEMPTION == 1 ) && ( configNUMBER_OF_CORES > 1 ) */
|
#endif /* #if ( configUSE_PREEMPTION == 1 ) && ( configNUMBER_OF_CORES > 1 ) */
|
||||||
|
|
||||||
|
traceENTER_xTaskIncrementTick();
|
||||||
|
|
||||||
/* Called by the portable layer each time a tick interrupt occurs.
|
/* Called by the portable layer each time a tick interrupt occurs.
|
||||||
* Increments the tick then checks to see if the new tick value will cause any
|
* Increments the tick then checks to see if the new tick value will cause any
|
||||||
* tasks to be unblocked. */
|
* tasks to be unblocked. */
|
||||||
|
@ -5566,10 +5566,10 @@ static portTASK_FUNCTION( prvIdleTask, pvParameters )
|
||||||
const UBaseType_t uxNonApplicationTasks = 1;
|
const UBaseType_t uxNonApplicationTasks = 1;
|
||||||
#endif /* INCLUDE_vTaskSuspend */
|
#endif /* INCLUDE_vTaskSuspend */
|
||||||
|
|
||||||
traceENTER_eTaskConfirmSleepModeStatus();
|
|
||||||
|
|
||||||
eSleepModeStatus eReturn = eStandardSleep;
|
eSleepModeStatus eReturn = eStandardSleep;
|
||||||
|
|
||||||
|
traceENTER_eTaskConfirmSleepModeStatus();
|
||||||
|
|
||||||
/* This function must be called from a critical section. */
|
/* This function must be called from a critical section. */
|
||||||
|
|
||||||
if( listCURRENT_LIST_LENGTH( &xPendingReadyList ) != 0 )
|
if( listCURRENT_LIST_LENGTH( &xPendingReadyList ) != 0 )
|
||||||
|
|
Loading…
Reference in a new issue