summaryrefslogtreecommitdiff
path: root/include/rtdef.h
diff options
context:
space:
mode:
authorlijin.unix <[email protected]>2009-12-22 15:06:27 +0000
committerlijin.unix <[email protected]>2009-12-22 15:06:27 +0000
commit8c8aa4418b22a97a3cd2c9a27af1c81756fad4d8 (patch)
tree89061d61b9edeb394241f449765bfc75aaffaa2b /include/rtdef.h
parent1018dd336a5cd7e24ded3e94ef352a5aa83acc8d (diff)
add soft timer.other's platform maybe compiled err,pls add some macro definition in rtconfig.h. ( RT_TIMER_THREAD_STACK_SIZE RT_TIMER_THREAD_PRIO RT_TIMER_EX_TICKS_PER_SEC)
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@215 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'include/rtdef.h')
-rw-r--r--include/rtdef.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index 5979b45404..cc36b95b68 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -234,6 +234,9 @@ struct rt_object_information
#define RT_TIMER_FLAG_ONE_SHOT 0x0 /* one shot timer. */
#define RT_TIMER_FLAG_PERIODIC 0x2 /* periodic timer. */
+#define RT_TIMER_FLAG_HARD_TIMER 0x0 /* hard timer,the timer's callback function will be called in tick isr. */
+#define RT_TIMER_FLAG_SOFT_TIMER 0x4 /* soft timer,the timer's callback function will be called in timer thread. */
+
#define RT_TIMER_CTRL_SET_TIME 0x0 /* set timer. */
#define RT_TIMER_CTRL_GET_TIME 0x1 /* get timer. */
#define RT_TIMER_CTRL_SET_ONESHOT 0x2 /* change timer to one shot. */