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
This commit is contained in:
lijin.unix
2009-12-22 15:06:27 +00:00
parent 1018dd336a
commit 8c8aa4418b
3 changed files with 161 additions and 1 deletions

View File

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