Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - 64 bit conter and the Timer call outs: (1 Item)
   
64 bit conter and the Timer call outs  
Dear OSTech,

I am porting the QNX to a platform which has  64 bit counter Timer. I have few Questions on Timer callouts.

1.       Timer_load callout

We have to set the MATCH value in the Match register or comparator register , it will be writing in my own registers , 
there is no problem whether timer value is 32 bit/64 bit.

2.       Timer_value callout
It has to return a counter incremented value to the caller from the last Timer interrupt to till now. If the Timer 
counter resets on every Timer interrupt  the callout is fine to return the value as
Latest counter value (i.e.    return_value  =  current counter value - 0  ,  0 bacause  the counter reset on last 
interrupt).
If the Timer counter is a continuous incrementing and not resetting on Timer Interrupt , how to return the delta value 
to the caller from last interrupt to till now.
How does the 64 bit continuous incrementing timer will impact the QNX kernel. Does QNX has 64 bit timer support 
currently ( ARM Generic Timer as an optional extension to an ARMv7-A or
ARMv7-R processor implementation.)


Thanks,
Ravinder