feat(freertos): Add configuration to speed up task switch

The global heap is 74332 bytes when connect to AP and get IP by DHCP.
This commit is contained in:
Dong Heng
2018-11-28 16:16:10 +08:00
parent 72eea96f4a
commit 6fd342dd0f
7 changed files with 40 additions and 9 deletions

View File

@ -2611,7 +2611,7 @@ implementations require configUSE_TICKLESS_IDLE to be set to a value other than
#endif /* INCLUDE_xTaskAbortDelay */
/*----------------------------------------------------------*/
BaseType_t xTaskIncrementTick( void )
BaseType_t TASK_SW_ATTR xTaskIncrementTick( void )
{
TCB_t * pxTCB;
TickType_t xItemValue;
@ -2873,7 +2873,7 @@ BaseType_t xSwitchRequired = pdFALSE;
#endif /* configUSE_APPLICATION_TASK_TAG */
/*-----------------------------------------------------------*/
void vTaskSwitchContext( void )
void TASK_SW_ATTR vTaskSwitchContext( void )
{
if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE )
{