MTK timer sleep

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.