Skip to content

Commit

Permalink
[add]tick long long unit
Browse files Browse the repository at this point in the history
  • Loading branch information
CYFS3 committed Oct 1, 2024
1 parent 443d56c commit 9cd44c4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/rttypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,14 @@ typedef rt_ubase_t rt_intptr_t; /**< Type for signed poi
typedef rt_base_t rt_uintptr_t; /**< Type for unsigned pointer length integer */
#endif /* defined(RT_USING_LIBC) && !defined(RT_USING_NANO) */

#ifdef RT_TICK_LL_UNIT
typedef rt_uint64_t rt_tick_t; /**< Type for tick count */
#else
typedef rt_uint32_t rt_tick_t; /**< Type for tick count */
#endif /* RT_TICK_LL_UNIT */

typedef rt_base_t rt_err_t; /**< Type for error number */
typedef rt_uint32_t rt_time_t; /**< Type for time stamp */
typedef rt_uint32_t rt_tick_t; /**< Type for tick count */
typedef rt_base_t rt_flag_t; /**< Type for flags */
typedef rt_ubase_t rt_dev_t; /**< Type for device */
typedef rt_base_t rt_off_t; /**< Type for offset */
Expand Down
6 changes: 6 additions & 0 deletions src/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ config RT_TICK_PER_SECOND
help
System's tick frequency, Hz.

config RT_TICK_LL_UNIT
bool "Using long long as tick unit"
default n
help
Using long long as tick unit, this is useful when the tick frequency is very high.

config RT_USING_HOOK
bool "Enable system hook"
default y
Expand Down

0 comments on commit 9cd44c4

Please sign in to comment.