Automatically pin no-cpu-affinity task to a core when FPU is used

This commit is contained in:
Jeroen Domburg
2016-09-28 17:02:44 +08:00
parent a9502dffd3
commit b3309a03a3
3 changed files with 33 additions and 0 deletions

View File

@@ -1979,6 +1979,12 @@ BaseType_t xTaskGenericCreate( TaskFunction_t pxTaskCode, const char * const pcN
*/
UBaseType_t uxTaskGetTaskNumber( TaskHandle_t xTask ) PRIVILEGED_FUNCTION;
/*
* Get the current core affinity of a task
*/
BaseType_t xTaskGetAffinity( TaskHandle_t xTask ) PRIVILEGED_FUNCTION;
/*
* Set the uxTaskNumber of the task referenced by the xTask parameter to
* uxHandle.