[add]rt_tick_max 64bits

This commit is contained in:
CYFS 2024-10-02 23:52:45 +08:00
parent 9ed39f1834
commit 825226246d
1 changed files with 4 additions and 0 deletions

View File

@ -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 */