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/EK-TM4C1294XL: Write native interrupt handlers witout invoking Hwi

Part Number: EK-TM4C1294XL

Tool/software: TI-RTOS

Hi

I am unsing TI RTOS framework for my application. But I need to generate a peripheral timer interrupt and need it to be non RTOS based. I mean I would want to handle it without TIRTOS Hwi.

If peripheral timer is not possible then I can use RTC.

Please tell me know to plug in a native interrupt handler into a TI RTOS application

  • The kernel supports "zero-latency" interrupts. You still use Hwi to create the ISR, but the kernel does not touch it afterwards. It's called zero-latency because the kernel adds no latency to it. When you disable interrupts via Hwi_disable, the zero-latency interrupts are not impacted. The downside is that a zero-latency interrupt cannot make a scheduler call (e.g. Semaphore_post, etc.).

    For more details refer to Hwi cdoc documentation. Note: this feature is down in the family hal since a few TI processors don't support this (all the CortexM device do support it).

  • Thank you.. Can you point to a specific code example available? Say i use a timer to trigger a zero latency interrupt tp toggle on ek tn4c1294xl on board led..

    Your answer was informative and correct but i need a little more help in termsof code and link to cdoc to run and test this.
  • We don't have a code example in the product. You can get to the cdoc via the Documentation_Overview.html in the docs directory of the installed product. Then search for "TI-RTOS Kernel Runtime APIs and Configuration (cdoc)". You can also use dev.ti.com/.../ to see the documentation on the web. You need to navigate to ti->sysbios->family->arm->m3->Hwi.