Merge branch 'bugfix/new_task_watchdog_API_false_trigger' into 'master'

feat/New Task Watchdog API

See merge request !1380
This commit is contained in:
Ivan Grokhotkov
2017-11-07 10:43:56 +08:00
13 changed files with 750 additions and 236 deletions

View File

@@ -2367,6 +2367,18 @@ UBaseType_t uxTaskGetNumberOfTasks( void )
return xIdleTaskHandle[ xPortGetCoreID() ];
}
TaskHandle_t xTaskGetIdleTaskHandleForCPU( UBaseType_t cpuid )
{
TaskHandle_t xReturn = NULL;
/* If xTaskGetIdleTaskHandleForCPU() is called before the scheduler has been
started, then xIdleTaskHandle will be NULL. */
if (cpuid < portNUM_PROCESSORS) {
configASSERT( ( xIdleTaskHandle[ cpuid ] != NULL ) );
xReturn = xIdleTaskHandle[ cpuid ];
}
return xReturn;
}
#endif /* INCLUDE_xTaskGetIdleTaskHandle */
/*----------------------------------------------------------*/