This commit is contained in:
pvvx 2017-05-09 18:55:34 +03:00
parent b882fe7efb
commit 9a5b92c3d1
8 changed files with 5 additions and 4 deletions

View file

@ -1711,11 +1711,11 @@ TickType_t xTaskGetTickCount( void )
TickType_t xTicks; TickType_t xTicks;
/* Critical section required if running on a 16 bit processor. */ /* Critical section required if running on a 16 bit processor. */
taskENTER_CRITICAL(); // taskENTER_CRITICAL();
{ {
xTicks = xTickCount; xTicks = xTickCount;
} }
taskEXIT_CRITICAL(); // taskEXIT_CRITICAL();
return xTicks; return xTicks;
} }

View file

@ -69,6 +69,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <platform/platform_stdlib.h>
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining /* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
all the API functions to use the MPU wrappers. That should only be done when all the API functions to use the MPU wrappers. That should only be done when

View file

@ -2248,11 +2248,11 @@ TickType_t xTaskGetTickCount( void )
TickType_t xTicks; TickType_t xTicks;
/* Critical section required if running on a 16 bit processor. */ /* Critical section required if running on a 16 bit processor. */
portTICK_TYPE_ENTER_CRITICAL(); // portTICK_TYPE_ENTER_CRITICAL();
{ {
xTicks = xTickCount; xTicks = xTickCount;
} }
portTICK_TYPE_EXIT_CRITICAL(); // portTICK_TYPE_EXIT_CRITICAL();
return xTicks; return xTicks;
} }

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.