File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -81,9 +81,14 @@ typedef rt_ubase_t rt_intptr_t; /**< Type for signed poi
81
81
typedef rt_base_t rt_uintptr_t ; /**< Type for unsigned pointer length integer */
82
82
#endif /* defined(RT_USING_LIBC) && !defined(RT_USING_NANO) */
83
83
84
+ #ifdef RT_USING_TICK_LL_UNIT
85
+ typedef rt_uint64_t rt_tick_t ; /**< Type for tick count */
86
+ #else
87
+ typedef rt_uint32_t rt_tick_t ; /**< Type for tick count */
88
+ #endif /* RT_USING_TICK_LL_UNIT */
89
+
84
90
typedef rt_base_t rt_err_t ; /**< Type for error number */
85
91
typedef rt_uint32_t rt_time_t ; /**< Type for time stamp */
86
- typedef rt_uint32_t rt_tick_t ; /**< Type for tick count */
87
92
typedef rt_base_t rt_flag_t ; /**< Type for flags */
88
93
typedef rt_ubase_t rt_dev_t ; /**< Type for device */
89
94
typedef rt_base_t rt_off_t ; /**< Type for offset */
Original file line number Diff line number Diff line change @@ -116,6 +116,12 @@ config RT_TICK_PER_SECOND
116
116
help
117
117
System's tick frequency, Hz.
118
118
119
+ config RT_USING_TICK_LL_UNIT
120
+ bool "Using long long as tick unit"
121
+ default n
122
+ help
123
+ Using long long as tick unit, this is useful when the tick frequency is very high.
124
+
119
125
config RT_USING_HOOK
120
126
bool "Enable system hook"
121
127
default y
You can’t perform that action at this time.
0 commit comments