Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9881 Discussions

Implement millis() function of arduino in quark sec1000.

RohitSingh_Y_Intel
1,074 Views

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
189 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.

RohitSingh_Y_Intel
189 Views

Hi,

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

Regards,

Rohit

CK_Intel
Moderator
189 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