Skip to content

Commit 7e923ed

Browse files
committed
Fix C90 errors for unsigned long long integers
1 parent 21e36ec commit 7e923ed

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

examples/cmake_example/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
cmake_minimum_required(VERSION 3.15)
2-
32
project(example)
43

54
set(FREERTOS_KERNEL_PATH "../../")
@@ -71,3 +70,5 @@ add_executable(${PROJECT_NAME}
7170
)
7271

7372
target_link_libraries(${PROJECT_NAME} freertos_kernel freertos_config)
73+
74+
set_property(TARGET freertos_kernel PROPERTY C_STANDARD 90)

include/event_groups.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
#define eventWAIT_FOR_ALL_BITS ( ( uint32_t ) 0x04000000UL )
5151
#define eventEVENT_BITS_CONTROL_BYTES ( ( uint32_t ) 0xff000000UL )
5252
#elif ( configTICK_TYPE_WIDTH_IN_BITS == TICK_TYPE_WIDTH_64_BITS )
53-
#define eventCLEAR_EVENTS_ON_EXIT_BIT ( ( uint64_t ) 0x0100000000000000ULL )
54-
#define eventUNBLOCKED_DUE_TO_BIT_SET ( ( uint64_t ) 0x0200000000000000ULL )
55-
#define eventWAIT_FOR_ALL_BITS ( ( uint64_t ) 0x0400000000000000ULL )
56-
#define eventEVENT_BITS_CONTROL_BYTES ( ( uint64_t ) 0xff00000000000000ULL )
53+
#define eventCLEAR_EVENTS_ON_EXIT_BIT ( ( uint64_t ) 0x0100000000000000 )
54+
#define eventUNBLOCKED_DUE_TO_BIT_SET ( ( uint64_t ) 0x0200000000000000 )
55+
#define eventWAIT_FOR_ALL_BITS ( ( uint64_t ) 0x0400000000000000 )
56+
#define eventEVENT_BITS_CONTROL_BYTES ( ( uint64_t ) 0xff00000000000000 )
5757
#endif /* if ( configTICK_TYPE_WIDTH_IN_BITS == TICK_TYPE_WIDTH_16_BITS ) */
5858

5959
/* *INDENT-OFF* */

portable/template/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ typedef unsigned char UBaseType_t;
4040
#define portMAX_DELAY ( TickType_t ) 0xffffffffUL
4141
#elif ( configTICK_TYPE_WIDTH_IN_BITS == TICK_TYPE_WIDTH_64_BITS )
4242
typedef uint64_t TickType_t;
43-
#define portMAX_DELAY ( TickType_t ) 0xffffffffffffffffULL
43+
#define portMAX_DELAY ( TickType_t ) 0xffffffffffffffff
4444
#else
4545
#error configTICK_TYPE_WIDTH_IN_BITS set to unsupported tick type width.
4646
#endif

tasks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@
295295
#elif ( configTICK_TYPE_WIDTH_IN_BITS == TICK_TYPE_WIDTH_32_BITS )
296296
#define taskEVENT_LIST_ITEM_VALUE_IN_USE ( ( uint32_t ) 0x80000000UL )
297297
#elif ( configTICK_TYPE_WIDTH_IN_BITS == TICK_TYPE_WIDTH_64_BITS )
298-
#define taskEVENT_LIST_ITEM_VALUE_IN_USE ( ( uint64_t ) 0x8000000000000000ULL )
298+
#define taskEVENT_LIST_ITEM_VALUE_IN_USE ( ( uint64_t ) 0x8000000000000000 )
299299
#endif
300300

301301
/* Indicates that the task is not actively running on any core. */

0 commit comments

Comments
 (0)