启动定时器

## 启动定时器 函数原型|IMPC extern OSA_STATUS OSATimerStart( |-|-| ||OSTimerRef timerRef, ||UINT32 initialTime, ||UINT32 rescheduleTime, ||void (*callBackRoutine)(UINT32), ||UINT32 timerArgc ||) 功能 |启动定时器 形参说明 |timerRef:定时器句柄 ||initialTime:初始定时时间 ||rescheduleTime:重载定时时间 ||(*callBackRoutine)(UINT32):定时器回调函数 ||timerArgc:传递参数 返回值 | OS_SUCCESS:成功 ||OS_INVALID_REF:定时器句柄错误 ||OS_INVALID_PTR:定时器回调函数为空 ||OS_FAIL:定时器仍然处于活动状态 **使用示例** ```OSATimerRef timerRef; OSA_STATUS status; void timerRoutine(UINT32); /* Start the timer ‘‘timerRef’’ with an expiration function‘‘timerRoutine’’, with an initial expiration of 20 timer ticks, and pass the argument 0x1234 into the function ‘‘timerRoutine’’ when the timer expires. After the initial expiration, the timer expires every 56 timer ticks. Assume ‘‘timerRef’’ has previously been created with the OSATimerCreate service call. */ status = OSATimerStart(timerRef, 20, 56,timerRoutine(UINT32), 0x1234); ```