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.

RTOS/TM4C1294NCPDT: rtos

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hi

i have created two timers using .cfg file UI .one is 200ms and another one is 30sec i would like to change this timer values in run time .

or

is their any function available to create timer in main.c program 

Thanks 

Rajesh.K

  • Hi Kota,

    You can use Timer_create (or Timer_construct) during runtime.

    Another option is... by default TI-RTOS uses one timer to drive internal clocking for Task_sleep, Semaphore_pend with a timeout, etc. By default this timer fires every 1ms and is managed by the ti.sysbios.knl.Clock module. Since you need things that are a multiple of 1ms, you can simply add functions to the Clock module that will be called at the desired time. This would save you two timers. The Clock_create function is how you add your functions into the clock module.

    Todd