diff options
author | Richard Barry <ribarry@amazon.com> | 2014-12-18 11:02:15 +0000 |
---|---|---|
committer | Richard Barry <ribarry@amazon.com> | 2014-12-18 11:02:15 +0000 |
commit | f407b70dccb72a96a6f508f283363780419cfc19 (patch) | |
tree | 5eb152faf3594cb36a5240ce518df3f09efaecea /FreeRTOS/Source/portable/RVDS/ARM_CM4F/portmacro.h | |
parent | 85fb1cc024757784668eba20675ab7feda33815a (diff) | |
download | freertos-git-f407b70dccb72a96a6f508f283363780419cfc19.tar.gz |
+ Update demos that use FreeRTOS+Trace to work with the latest trace recorder library.
+ Fix a few compiler warnings.
+ Add TickType_t specific critical sections so critical sections are not used when accessing the tick count in cases where the access is atomic (32-bit tick count, 32-bit architecture).
Diffstat (limited to 'FreeRTOS/Source/portable/RVDS/ARM_CM4F/portmacro.h')
-rw-r--r-- | FreeRTOS/Source/portable/RVDS/ARM_CM4F/portmacro.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/FreeRTOS/Source/portable/RVDS/ARM_CM4F/portmacro.h b/FreeRTOS/Source/portable/RVDS/ARM_CM4F/portmacro.h index 93a055555..2b29b7253 100644 --- a/FreeRTOS/Source/portable/RVDS/ARM_CM4F/portmacro.h +++ b/FreeRTOS/Source/portable/RVDS/ARM_CM4F/portmacro.h @@ -100,6 +100,10 @@ typedef unsigned long UBaseType_t; #else
typedef uint32_t TickType_t;
#define portMAX_DELAY ( TickType_t ) 0xffffffffUL
+
+ /* 32-bit tick type on a 32-bit architecture, so reads of the tick count do
+ not need to be guarded with a critical section. */
+ #define portTICK_TYPE_IS_ATOMIC 1
#endif
/*-----------------------------------------------------------*/
|