Community
cancel
Showing results for 
Search instead for 
Did you mean: 
945 Views

Implement millis() function of arduino in quark sec1000.

Hi All,

I want to implement the millis() function of arduino using QMSI 1.1 Api.

I am not getting any clue to do it.

can any one help me to implement the functionality of this function for Quark SE C1000 using QMSI1.1.

Regards,

Rohit

0 Kudos
3 Replies
AZimi
New Contributor II
60 Views

Hi!

There's the function in D2000 - "get_ticks();" which returns working processor time in ticks and when you know the processor frequency you can estimate a time in useconds, msecond, etc.

60 Views

Hi,

Thanks for your reply. I will try and get back to you very soon.

Regards,

Rohit

CK_Intel
Moderator
60 Views

Hi Rohit,

There are several ways to do this. You might want to check the 'get_ticks(), a 64 bit Timestamp counter in the 'clk.c' driver or leverage the internal RTC. You can configure the RTC to run at 1Hz and read the RTC_CCVR register.

I hope that helps you. Thank you.

Regards

CK

Intel Customer Support

Reply