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/LAUNCHXL-CC1350: Examples for Hardware interrupt, timers and Softwareinterrupt

Part Number: LAUNCHXL-CC1350
Other Parts Discussed in Thread: CC1350

Tool/software: TI-RTOS

Hi,

I could not find examples for timer module in TI-RTOS ware for CC1350. There aren't any examples for Hwi or Swi. Is there anyway I can get them?

Thank you

  • Hi Navin,

    Have you looked at the Resource Explorer in CCS? There are plenty of examples for Swis and clocks. Maybe this can be a good starting point.

    If you need to use Timers instead of clocks, there should be some examples in the E2E forums.

    If you look at the documentation,

    • Through the Resource Explorer ->Software ->TI-RTOS for CC13xx and CC26xx <ver> ->Documents -> Documentation Links
    • From your computer: C:\<ti-rtos installation dir>\Docs\ Open the Documentation overview html page

    You should look at the driver runtime APIs. In the PWM driver, you should have a link to the GPTImer documentation.

    On my computer, the GP TImer documentation was located here:

    C:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/tidrivers_cc13xx_cc26xx_2_21_00_04/docs/doxygen/html/_g_p_timer_c_c26_x_x_8h.html

    Regards,

    Michel

  • Hi Michael,

    I have the latest CC13xx ware, but there aren't any Hwi examples. I found the Swi examples in the kernel section under CC1350LAUNCHXL and also timers under the folder you have mentioned in the above post. I was watching the TI-RTOS tutorial by Eric Wilbur. I tried catch up with the labs, due to the lack of examples I'm not able to proceed further. Any help from you would be appreciated.

    Kind regards,

    Thank you

    Navin Reddy

  • Hi Navin,

    If you want to look at specific examples, I suggest that you look at the source code of the TI-RTOS drivers.
    The GPTimer.c file uses Hwis for its driver.

    The location of the driver is located here (the version number might vary):
    C:\<tirtos intallation dir>\products\tidrivers_cc13xx_cc26xx_2_20_01_10\packages\ti\drivers\timer

    Regards,
    Michel
  • Hi Michel,
    Are there any examples for CC1350 without using TI-RTOS? It's quite difficult to understand the examples.
    Thank you
  • Hi Navin,

    I am not quite sure I understand what you are asking. Your original question was about Hwis, but Hwis are a concept purely in TI-RTOS. You cannot have Hwis or Swis without TI-RTOS.

    But if you are looking at the low-level drivers of the timer, I suggest that you look at the drivelib. The TI-RTOS GPTimer uses the timer driverlib for its low-level functions.

    The driverlib folder should be located here (the versions might be different on your computer depending on what you have installed on your computer):

    C:\ti\tirtos_cc13xx_cc26xx_2_20_01_08\products\cc13xxware_2_04_02_17240\driverlib

    Look in timer.c and .h

    For interrupt specific functions, look in interrupt.c and .h

    I also recommend that you look inside the <driver>_doc.h file for additional information.

    Regards,

    Michel

  • There was a suggested answer and since there has been no active on this thread for more than a week, the suggested answer was marked as verify. Please feel free to select the "Reject Answer" button and reply with more details.