freertos: enabled use of pxTaskGetStackStart and cleaned up it's implementation
Merges #1298
This commit is contained in:
parent
4332a2c4bc
commit
969911b7c2
2 changed files with 11 additions and 7 deletions
|
@ -253,6 +253,7 @@ int xt_clock_freq(void) __attribute__((deprecated));
|
||||||
#define INCLUDE_uxTaskGetStackHighWaterMark 1
|
#define INCLUDE_uxTaskGetStackHighWaterMark 1
|
||||||
#define INCLUDE_pcTaskGetTaskName 1
|
#define INCLUDE_pcTaskGetTaskName 1
|
||||||
#define INCLUDE_xTaskGetIdleTaskHandle 1
|
#define INCLUDE_xTaskGetIdleTaskHandle 1
|
||||||
|
#define INCLUDE_pxTaskGetStackStart 1
|
||||||
|
|
||||||
#define INCLUDE_xSemaphoreGetMutexHolder 1
|
#define INCLUDE_xSemaphoreGetMutexHolder 1
|
||||||
|
|
||||||
|
|
|
@ -3814,14 +3814,17 @@ BaseType_t xTaskGetAffinity( TaskHandle_t xTask )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
#if (INCLUDE_pxTaskGetStackStart == 1)
|
#if (INCLUDE_pxTaskGetStackStart == 1)
|
||||||
uint8_t* pxTaskGetStackStart( TaskHandle_t xTask)
|
|
||||||
{
|
|
||||||
TCB_t *pxTCB;
|
|
||||||
UBaseType_t uxReturn;
|
|
||||||
|
|
||||||
pxTCB = prvGetTCBFromHandle( xTask );
|
uint8_t* pxTaskGetStackStart( TaskHandle_t xTask)
|
||||||
return ( uint8_t * ) pxTCB->pxStack;
|
{
|
||||||
}
|
TCB_t *pxTCB;
|
||||||
|
uint8_t* uxReturn;
|
||||||
|
|
||||||
|
pxTCB = prvGetTCBFromHandle( xTask );
|
||||||
|
uxReturn = (uint8_t*)pxTCB->pxStack;
|
||||||
|
|
||||||
|
return uxReturn;
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* INCLUDE_pxTaskGetStackStart */
|
#endif /* INCLUDE_pxTaskGetStackStart */
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
Loading…
Reference in a new issue