]> granicus.if.org Git - esp-idf/commitdiff
FreeRTOS: Change tskNO_AFFINITY value to not match CPU 1 when UNICORE is set
authorAngus Gratton <angus@espressif.com>
Thu, 25 Aug 2016 03:12:48 +0000 (11:12 +0800)
committerAngus Gratton <angus@espressif.com>
Thu, 25 Aug 2016 03:30:24 +0000 (11:30 +0800)
components/freertos/include/freertos/task.h

index d771ca653921f762d2ed0e1630a9df60cdfeb938..ddf7a7589dec5ce7ffa5dd4996968c576e391225 100644 (file)
@@ -75,6 +75,8 @@
        #error "include FreeRTOS.h must appear in source files before include task.h"
 #endif
 
+#include <limits.h>
+
 #include "list.h"
 #include "portmacro.h"
 
@@ -91,7 +93,7 @@ extern "C" {
 #define tskKERNEL_VERSION_MINOR 2
 #define tskKERNEL_VERSION_BUILD 0
 
-#define tskNO_AFFINITY portNUM_PROCESSORS
+#define tskNO_AFFINITY INT_MAX
 
 /**
  * task. h