// Find out event id using timer id
#define EVENT_ID( timerId ) ( 0x0001 << ( ( timerId ) % NUM_CBTIMERS_PER_TASK ) )
// Find out task id using timer id
#define TASK_ID( timerId ) ( ( ( timerId ) / NUM_CBTIMERS_PER_TASK ) + baseTaskID )
// Find out bank task id using task id
#define BANK_TASK_ID( taskId ) ( ( baseTaskID – ( taskId ) ) * NUM_CBTIMERS )
第三个也就是:
// Find out bank task id using task id
#define BANK_TASK_ID( taskId ) ( ( baseTaskID – ( taskId ) ) * NUM_CBTIMERS )
这个换算方法是不是错误的啊?
应该是:#define BANK_TASK_ID( taskId ) ( (( taskId ) – baseTaskID ) * NUM_CBTIMERS_PER_TASK ) 吧?
Viki Shi:
请问你的协议栈版本是?
user4024521:
回复 Viki Shi:
协议栈版本:1.4.2.2