MTK定时器消息传递机制 MTK定时器消息处理机制 1. 基本概念及Neclus内核定时器初始化 expires:指定定时器到期的时间,这个时间被表示成自系统启动以来的时钟滴答计数(也即时钟节拍数)。当一个定时器的expires值小于或等于jiffies变量时,我们就说这个定时器已经超时或到期了。在初始化一个定时器后,通常把它的expires域设置成当前expires变量的当前值加上某个时间间隔值(以时钟滴答次数计。typedef struct timertable{ /* store the timer_id. MSB(Most Significant Bit) is align_timer_mask */ U16 timer_id[SIMULTANEOUS_TIMER_NUM]; /* store the event_id that returns from evshed_set_event() */ eventid event_id[SIMULTANEOUS_TIMER_NUM]; /* store the timer_expiry_func */ oslTimerFuncPtr callback_func[SIMULTANEOUS_TIMER_NUM]; /* point to the next TIMERTABLE data */ struct timertable *next;} TIMERTABLE;typedef lcd_dll_node *eventid;struct lcd_dll_node { void *data; lcd_dll_node *prev; lcd_dll_node *next;}……