Void starttimer (maid, u32 delay, funcptr)
{
/*----------------------------------------------------------------*/
/* Local variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code body */
/*----------------------------------------------------------------*/
Mmi_trace (mmi_fw_trc_g1_frm, trc_mmi_frm_timer_start_align_timer, timerid, delay, funcptr );
L4stoptimer (timerid );
L4starttimer (timerid, (osltimerfuncptr) funcptr, (void *) timerid, delay,Timer_is_alignment);
}
The key is the above timer_is_alignment parameter,
1. If timer_is_no_alignment is used, the timer will stop when the mobile phone enters sleep mode. However, the timer is accurate and the error is within 1 ms.
2. If it is timer_is_alignment, the timer will not stop, but will be delay. Between mtk25 may be delay150-300ms. mtk28 is about 50-60 ms.