Skip to content

Commit

Permalink
Added support of 64bit even
Browse files Browse the repository at this point in the history
Signed-off-by: Cervenka Dusan <[email protected]>
  • Loading branch information
Hadatko committed Dec 1, 2022
1 parent 91927ab commit b1991ff
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions event_groups.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
#define eventUNBLOCKED_DUE_TO_BIT_SET 0x0200U
#define eventWAIT_FOR_ALL_BITS 0x0400U
#define eventEVENT_BITS_CONTROL_BYTES 0xff00U
#elif configUSE_16_BIT_TICKS == 2
#define eventCLEAR_EVENTS_ON_EXIT_BIT 0x0100000000000000UL
#define eventUNBLOCKED_DUE_TO_BIT_SET 0x0200000000000000UL
#define eventWAIT_FOR_ALL_BITS 0x0400000000000000UL
#define eventEVENT_BITS_CONTROL_BYTES 0xff00000000000000UL
#else
#define eventCLEAR_EVENTS_ON_EXIT_BIT 0x01000000UL
#define eventUNBLOCKED_DUE_TO_BIT_SET 0x02000000UL
Expand Down
2 changes: 2 additions & 0 deletions include/projdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ typedef void (* TaskFunction_t)( void * );

#if ( configUSE_16_BIT_TICKS == 1 )
#define pdINTEGRITY_CHECK_VALUE 0x5a5a
#elif configUSE_16_BIT_TICKS == 2
#define pdINTEGRITY_CHECK_VALUE 0x5a5a5a5a5a5a5a5aUL
#else
#define pdINTEGRITY_CHECK_VALUE 0x5a5a5a5aUL
#endif
Expand Down
3 changes: 3 additions & 0 deletions portable/CCS/ARM_CM4F/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
#if ( configUSE_16_BIT_TICKS == 1 )
typedef uint16_t TickType_t;
#define portMAX_DELAY ( TickType_t ) 0xffff
#elif configUSE_16_BIT_TICKS == 2
typedef uint64_t TickType_t;
#define portMAX_DELAY ( TickType_t ) 0xffffffffffffffffUL
#else
typedef uint32_t TickType_t;
#define portMAX_DELAY ( TickType_t ) 0xffffffffUL
Expand Down
2 changes: 2 additions & 0 deletions tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@
* to its original value when it is released. */
#if ( configUSE_16_BIT_TICKS == 1 )
#define taskEVENT_LIST_ITEM_VALUE_IN_USE 0x8000U
#elif configUSE_16_BIT_TICKS == 2
#define taskEVENT_LIST_ITEM_VALUE_IN_USE 0x8000000000000000UL
#else
#define taskEVENT_LIST_ITEM_VALUE_IN_USE 0x80000000UL
#endif
Expand Down

0 comments on commit b1991ff

Please sign in to comment.