@@ -658,7 +658,7 @@ static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB ) PRIVILEGED_FUNCTION;
658
658
659
659
prvInitialiseNewTask ( pxTaskDefinition -> pvTaskCode ,
660
660
pxTaskDefinition -> pcName ,
661
- ( uint32_t ) pxTaskDefinition -> usStackDepth ,
661
+ pxTaskDefinition -> usStackDepth ,
662
662
pxTaskDefinition -> pvParameters ,
663
663
pxTaskDefinition -> uxPriority ,
664
664
pxCreatedTask , pxNewTCB ,
@@ -706,7 +706,7 @@ static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB ) PRIVILEGED_FUNCTION;
706
706
707
707
prvInitialiseNewTask ( pxTaskDefinition -> pvTaskCode ,
708
708
pxTaskDefinition -> pcName ,
709
- ( uint32_t ) pxTaskDefinition -> usStackDepth ,
709
+ pxTaskDefinition -> usStackDepth ,
710
710
pxTaskDefinition -> pvParameters ,
711
711
pxTaskDefinition -> uxPriority ,
712
712
pxCreatedTask , pxNewTCB ,
@@ -3622,7 +3622,7 @@ static void prvCheckTasksWaitingTermination( void )
3622
3622
3623
3623
#if ( ( configUSE_TRACE_FACILITY == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark == 1 ) )
3624
3624
3625
- static uint16_t prvTaskCheckFreeStackSpace ( const uint8_t * pucStackByte )
3625
+ static configSTACK_DEPTH_TYPE prvTaskCheckFreeStackSpace ( const uint8_t * pucStackByte )
3626
3626
{
3627
3627
uint32_t ulCount = 0U ;
3628
3628
@@ -3634,19 +3634,19 @@ static void prvCheckTasksWaitingTermination( void )
3634
3634
3635
3635
ulCount /= ( uint32_t ) sizeof ( StackType_t ); /*lint !e961 Casting is not redundant on smaller architectures. */
3636
3636
3637
- return ( uint16_t ) ulCount ;
3637
+ return ( configSTACK_DEPTH_TYPE ) ulCount ;
3638
3638
}
3639
3639
3640
3640
#endif /* ( ( configUSE_TRACE_FACILITY == 1 ) || ( INCLUDE_uxTaskGetStackHighWaterMark == 1 ) ) */
3641
3641
/*-----------------------------------------------------------*/
3642
3642
3643
3643
#if ( INCLUDE_uxTaskGetStackHighWaterMark == 1 )
3644
3644
3645
- UBaseType_t uxTaskGetStackHighWaterMark ( TaskHandle_t xTask )
3645
+ configSTACK_DEPTH_TYPE uxTaskGetStackHighWaterMark ( TaskHandle_t xTask )
3646
3646
{
3647
3647
TCB_t * pxTCB ;
3648
3648
uint8_t * pucEndOfStack ;
3649
- UBaseType_t uxReturn ;
3649
+ configSTACK_DEPTH_TYPE uxReturn ;
3650
3650
3651
3651
pxTCB = prvGetTCBFromHandle ( xTask );
3652
3652
@@ -3660,7 +3660,7 @@ static void prvCheckTasksWaitingTermination( void )
3660
3660
}
3661
3661
#endif
3662
3662
3663
- uxReturn = ( UBaseType_t ) prvTaskCheckFreeStackSpace ( pucEndOfStack );
3663
+ uxReturn = prvTaskCheckFreeStackSpace ( pucEndOfStack );
3664
3664
3665
3665
return uxReturn ;
3666
3666
}
0 commit comments