Tool/software: TI-RTOS
I am working on Hwi's.. I need to configure Hwi's such that It needs to do a function(let's say blink led) for every 1 ms. Does Hwi's have predefined Timers???
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.
Tool/software: TI-RTOS
I am working on Hwi's.. I need to configure Hwi's such that It needs to do a function(let's say blink led) for every 1 ms. Does Hwi's have predefined Timers???
Hi Naveen,
Yes, you c an configure the timer via TI-RTOS. See below example where the timer2 is configured statically to generate an periodic interrupt every 0.5s.
You can also create a timer dynamically using the timer_create() API such as :
myTimer=Timer_create(2 (Timer_FuncPtr)ledToggle,&Timer2,NULL);
Please refer to the TI-RTOS User's Guide in section 8.3 Timers for details.