Skip to content

Commit 6f23624

Browse files
authored
Switch to 32-bit tick width to avoid windows compile warnings (#1422)
Windows defines a long as a 32-bit value regardless if a 32 or 64 bit OS is used. This makes a 64-bit tick an `unsigned long long` which was introduced after C90.
1 parent d5d752a commit 6f23624

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/template_configuration/FreeRTOSConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
*
137137
* Defining configTICK_TYPE_WIDTH_IN_BITS as TICK_TYPE_WIDTH_64_BITS causes
138138
* TickType_t to be defined (typedef'ed) as an unsigned 64-bit type. */
139-
#define configTICK_TYPE_WIDTH_IN_BITS TICK_TYPE_WIDTH_64_BITS
139+
#define configTICK_TYPE_WIDTH_IN_BITS TICK_TYPE_WIDTH_32_BITS
140140

141141
/* Set configIDLE_SHOULD_YIELD to 1 to have the Idle task yield to an
142142
* application task if there is an Idle priority (priority 0) application task

0 commit comments

Comments
 (0)