none
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... )?

    Thanks

    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

    \WINCE600\PLATFORM\COMMON\SRC\SOC\PXA27X_MS_V1\OAL\TIMER\VARTICK

    See the function OALTimerInit()


    Vinoth.R http://vinoth-vinothblog.blogspot.com http://www.e-consystems.com
    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