File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -72,9 +72,18 @@ typedef portSTACK_TYPE StackType_t;
72
72
typedef uint32_t TickType_t ;
73
73
#define portMAX_DELAY ( TickType_t ) 0xffffffffUL
74
74
75
- /* 32/64 -bit tick type on a 32/64-bit architecture, so reads of the tick
75
+ /* 32-bit tick type on a 32/64-bit architecture, so reads of the tick
76
76
* count do not need to be guarded with a critical section. */
77
77
#define portTICK_TYPE_IS_ATOMIC 1
78
+ #elif ( configTICK_TYPE_WIDTH_IN_BITS == TICK_TYPE_WIDTH_64_BITS )
79
+ typedef uint64_t TickType_t ;
80
+ #define portMAX_DELAY ( TickType_t ) 0xffffffffffffffffULL
81
+
82
+ #if defined( __x86_64__ ) || defined( _M_X64 )
83
+ /* 64-bit tick type on a 64-bit architecture, so reads of the tick
84
+ * count do not need to be guarded with a critical section. */
85
+ #define portTICK_TYPE_IS_ATOMIC 1
86
+ #endif
78
87
#else
79
88
#error configTICK_TYPE_WIDTH_IN_BITS set to unsupported tick type width.
80
89
#endif
You can’t perform that action at this time.
0 commit comments