mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 10:36:04 +08:00
Merge remote-tracking branch 'remotes/gitee/master'
This commit is contained in:
+10
-1
@@ -34,6 +34,7 @@
|
||||
* 2019-12-20 Bernard change version number to v4.0.3
|
||||
* 2020-08-10 Meco Man add macro for struct rt_device_ops
|
||||
* 2020-10-23 Meco Man define maximum value of ipc type
|
||||
* 2021-05-10 armink change version number to v4.0.4
|
||||
*/
|
||||
|
||||
#ifndef __RT_DEF_H__
|
||||
@@ -55,7 +56,7 @@ extern "C" {
|
||||
/* RT-Thread version information */
|
||||
#define RT_VERSION 4L /**< major version number */
|
||||
#define RT_SUBVERSION 0L /**< minor version number */
|
||||
#define RT_REVISION 3L /**< revise version number */
|
||||
#define RT_REVISION 4L /**< revise version number */
|
||||
|
||||
/* RT-Thread version */
|
||||
#define RTTHREAD_VERSION ((RT_VERSION * 10000) + \
|
||||
@@ -566,6 +567,10 @@ typedef siginfo_t rt_siginfo_t;
|
||||
#define RT_SCHEDULE_IPI 0
|
||||
#endif
|
||||
|
||||
#ifndef RT_STOP_IPI
|
||||
#define RT_STOP_IPI 1
|
||||
#endif
|
||||
|
||||
/**
|
||||
* CPUs definitions
|
||||
*
|
||||
@@ -658,6 +663,10 @@ struct rt_thread
|
||||
rt_ubase_t init_tick; /**< thread's initialized tick */
|
||||
rt_ubase_t remaining_tick; /**< remaining tick */
|
||||
|
||||
#ifdef RT_USING_CPU_USAGE
|
||||
rt_uint64_t duration_tick; /**< cpu usage tick */
|
||||
#endif
|
||||
|
||||
struct rt_timer thread_timer; /**< built-in thread timer */
|
||||
|
||||
void (*cleanup)(struct rt_thread *tid); /**< cleanup function when thread exit */
|
||||
|
||||
Reference in New Issue
Block a user