This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Getting Sys/Bios Clock Period

Other Parts Discussed in Thread: SYSBIOS

Sys/Bios 6.31.0.18

Microprocessor 28335

 

I use the XGCONF IDE editor to include  the Clock module

      var Clock = xdc.useModule('ti.sysbios.knl.Clock');

I create an instance HandPieceMgrClock

      var instClock1Params0 = new Clock.Params();
      instClock1Params0.period = 10;
      instClock1Params0.startFlag = true;
      Program.global.HandPieceMgrClock = Clock.create("&gHandPieceMgrClock", 1000, instClock1Params0);

From within the program, I want to read the clock period for that clock instance, to use in future calculations. There seems to be no Sys/Bios access function to retrieve the period. There is a Clock_getTimeout() call, but that is not the field I want.

I could cast the Clock Handle to an Uint32 *, add four, and take the contents, but that seems slightly heavy handed.

Is there a better way to retrieve the clock period set in the Editor?

Thanks,

Jan