Skip to content

Commit 46c65de

Browse files
committed
formatting
1 parent 3d00dc7 commit 46c65de

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/tasks.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
* task should be used in place of the parameter. This macro simply checks to
230230
* see if the parameter is NULL and returns a pointer to the appropriate TCB.
231231
*/
232-
#define prvGetTCBFromHandle( pxHandle ) ( ( ( pxHandle ) == NULL ) ? pxCurrentTCB : ( TCB_t * )( pxHandle ) )
232+
#define prvGetTCBFromHandle( pxHandle ) ( ( ( pxHandle ) == NULL ) ? pxCurrentTCB : ( TCB_t * ) ( pxHandle ) )
233233

234234
/* The item value of the event list item is normally used to hold the priority
235235
* of the task to which it belongs (coded to allow it to be held in reverse
@@ -1801,7 +1801,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB )
18011801
static BaseType_t prvTaskIsTaskSuspended( const TaskHandle_t xTask )
18021802
{
18031803
BaseType_t xReturn = pdFALSE;
1804-
const TCB_t * const pxTCB = ( TCB_t * )xTask;
1804+
const TCB_t * const pxTCB = ( TCB_t * ) xTask;
18051805

18061806
/* Accesses xPendingReadyList so must be called from a critical
18071807
* section. */
@@ -1846,7 +1846,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB )
18461846

18471847
void vTaskResume( TaskHandle_t xTaskToResume )
18481848
{
1849-
TCB_t * const pxTCB = ( TCB_t * )xTaskToResume;
1849+
TCB_t * const pxTCB = ( TCB_t * ) xTaskToResume;
18501850

18511851
/* It does not make sense to resume the calling task. */
18521852
configASSERT( xTaskToResume );
@@ -1857,7 +1857,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB )
18571857
{
18581858
taskENTER_CRITICAL();
18591859
{
1860-
if( prvTaskIsTaskSuspended( ( TaskHandle_t )pxTCB ) != pdFALSE )
1860+
if( prvTaskIsTaskSuspended( ( TaskHandle_t ) pxTCB ) != pdFALSE )
18611861
{
18621862
traceTASK_RESUME( pxTCB );
18631863

@@ -1901,7 +1901,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB )
19011901
BaseType_t xTaskResumeFromISR( TaskHandle_t xTaskToResume )
19021902
{
19031903
BaseType_t xYieldRequired = pdFALSE;
1904-
TCB_t * const pxTCB = ( TCB_t * )xTaskToResume;
1904+
TCB_t * const pxTCB = ( TCB_t * ) xTaskToResume;
19051905
UBaseType_t uxSavedInterruptStatus;
19061906

19071907
configASSERT( xTaskToResume );
@@ -1926,7 +1926,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB )
19261926

19271927
uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
19281928
{
1929-
if( prvTaskIsTaskSuspended( ( TaskHandle_t )pxTCB ) != pdFALSE )
1929+
if( prvTaskIsTaskSuspended( ( TaskHandle_t ) pxTCB ) != pdFALSE )
19301930
{
19311931
traceTASK_RESUME_FROM_ISR( pxTCB );
19321932

@@ -3997,7 +3997,7 @@ static void prvResetNextTaskUnblockTime( void )
39973997
/* A critical section is not required as this is not called from
39983998
* an interrupt and the current TCB will always be the same for any
39993999
* individual execution thread. */
4000-
xReturn = ( TaskHandle_t )pxCurrentTCB;
4000+
xReturn = ( TaskHandle_t ) pxCurrentTCB;
40014001

40024002
return xReturn;
40034003
}
@@ -4037,7 +4037,7 @@ static void prvResetNextTaskUnblockTime( void )
40374037

40384038
BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder )
40394039
{
4040-
TCB_t * const pxMutexHolderTCB = ( TCB_t * )pxMutexHolder;
4040+
TCB_t * const pxMutexHolderTCB = ( TCB_t * ) pxMutexHolder;
40414041
BaseType_t xReturn = pdFALSE;
40424042

40434043
/* If the mutex was given back by an interrupt while the queue was
@@ -4127,7 +4127,7 @@ static void prvResetNextTaskUnblockTime( void )
41274127

41284128
BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
41294129
{
4130-
TCB_t * const pxTCB = ( TCB_t * )pxMutexHolder;
4130+
TCB_t * const pxTCB = ( TCB_t * ) pxMutexHolder;
41314131
BaseType_t xReturn = pdFALSE;
41324132

41334133
if( pxMutexHolder != NULL )
@@ -4208,7 +4208,7 @@ static void prvResetNextTaskUnblockTime( void )
42084208
void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder,
42094209
UBaseType_t uxHighestPriorityWaitingTask )
42104210
{
4211-
TCB_t * const pxTCB = ( TCB_t * )pxMutexHolder;
4211+
TCB_t * const pxTCB = ( TCB_t * ) pxMutexHolder;
42124212
UBaseType_t uxPriorityUsedOnEntry, uxPriorityToUse;
42134213
const UBaseType_t uxOnlyOneMutexHeld = ( UBaseType_t ) 1;
42144214

@@ -4655,7 +4655,7 @@ TickType_t uxTaskResetEventItemValue( void )
46554655
( pxCurrentTCB->uxMutexesHeld )++;
46564656
}
46574657

4658-
return ( TaskHandle_t )pxCurrentTCB;
4658+
return ( TaskHandle_t ) pxCurrentTCB;
46594659
}
46604660

46614661
#endif /* configUSE_MUTEXES */
@@ -4833,7 +4833,7 @@ TickType_t uxTaskResetEventItemValue( void )
48334833

48344834
configASSERT( uxIndexToNotify < configTASK_NOTIFICATION_ARRAY_ENTRIES );
48354835
configASSERT( xTaskToNotify );
4836-
pxTCB = ( TCB_t * )xTaskToNotify;
4836+
pxTCB = ( TCB_t * ) xTaskToNotify;
48374837

48384838
taskENTER_CRITICAL();
48394839
{
@@ -4977,7 +4977,7 @@ TickType_t uxTaskResetEventItemValue( void )
49774977
* https://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html */
49784978
portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
49794979

4980-
pxTCB = ( TCB_t * )xTaskToNotify;
4980+
pxTCB = ( TCB_t * ) xTaskToNotify;
49814981

49824982
uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
49834983
{
@@ -5112,7 +5112,7 @@ TickType_t uxTaskResetEventItemValue( void )
51125112
* https://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html */
51135113
portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
51145114

5115-
pxTCB = ( TCB_t * )xTaskToNotify;
5115+
pxTCB = ( TCB_t * ) xTaskToNotify;
51165116

51175117
uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
51185118
{

0 commit comments

Comments
 (0)