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.

TIVAWARE timer code for RTOS

Hi

Can we use the tivaware timer code with RTOS?

I tried it, but no interrupt seems to get generated. Anything particular to keep in mind?

  • Hi
    To "delays" I think you can use:

    Task_sleep (5); // 5ms

    regards
    Aquino
  • Hi Rashmi,

    TI-RTOS has its own interrupt controller driver (Hwi module). If you use Tivaware Timer APIs to register a timer ISR, it will use Tivaware interrupt controller APIs that may conflict with our Hwi module. Also, there may be resource conflicts between TI-RTOS timer module and Tivaware timer APIs. For example, TI-RTOS clock will use one of the timers by default. If the application uses Tivaware Timer APIs to use the same timer, the conflict will not be detected by TI-RTOS as our Timer module was not used and the application will not behave correctly.

    Can I ask why do you wish to use Tivaware Timer APIs instead of TI-RTOS Timer module ?

    Best,
    Ashish
  • Hi,

    If I want to use the TI RTOS timer module, can I specify which timer I want to use? If my application requires multiple timers and I need control over which timer is used, how do we go about it? Is there any reference code to use?

    Thanks and Regards,

    Rashmi

  • Hi Rashmi,

    You can specify the timer Id when creating a timer. Please see the cdoc for the Tiva General Purpose timer module for more info on the supported APIs:
    downloads.ti.com/.../Timer.html

    The SYS/BIOS user guide has some example code showing how to create timers using the timer module.

    Best,
    Ashish