Skip to content

Commit

Permalink
[add]rt_tick_max 64bits
Browse files Browse the repository at this point in the history
  • Loading branch information
CYFS3 committed Oct 2, 2024
1 parent 9ed39f1 commit 8252262
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/rtdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ extern "C" {
#define RT_UINT64_MAX 0xFFFFFFFFFFFFFFFFULL /**< Maximum number of UINT64 */
#endif /* RT_USING_LIBC */

#ifdef RT_TICK_USING_64BIT
#define RT_TICK_MAX RT_UINT64_MAX /**< Maximum number of tick */
#else
#define RT_TICK_MAX RT_UINT32_MAX /**< Maximum number of tick */
#endif /* RT_TICK_USING_64BIT */

/* maximum value of ipc type */
#define RT_SEM_VALUE_MAX RT_UINT16_MAX /**< Maximum number of semaphore .value */
Expand Down

0 comments on commit 8252262

Please sign in to comment.