OAL_TIMER_STATE initialization RRS feed

  • Question

  • Hello,

    Does anybody know how to initialize the OAL_TIMER_STATE structure eg how to calculate/get values for the fields (countsMargin, maxPeriodMSec... )?


    Thursday, May 12, 2011 10:00 AM

All replies

  • you can take any BSP for the sample implementation. I have given the SOC of PXA270 as an example


    See the function OALTimerInit()

    Thursday, May 12, 2011 10:17 AM
  • I have found out that in some BSPs they set countsMargin to 0 in others they set it to a different constant. So depending on what should I set it? I know that it defines the number of ticks that must elapse before the timer interrupt can safely change the timer value. But how can it be obtained? The board reference manual says nothing about it.
    Thursday, May 12, 2011 10:45 AM