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.

CCS/TMS570LS0432: RTI interrupt

Part Number: TMS570LS0432

Tool/software: Code Composer Studio

Hi i am very new to tms570ls0432 launchpad . I tried to implement RTI interrupt using compare0 and is working below is my code . But when i want to generate 0,1,2 interrupt using RTI for every 10,5,2mSec . I am unable to generate that in fact i am not getting how to write cod for that because for RTI module helcogen is generating only one void rtiNotification(uint32 notification) . If i want to write own code for interrupt how to do it . please help.

#include "sys_common.h"

/* USER CODE BEGIN (1) */
#include "rti.h"
#include "het.h"
#include "gio.h"
/* USER CODE END */

/** @fn void main(void)
*   @brief Application main function
*   @note This function is empty by default.
*
*   This function is called after startup.
*   The user can use this function to implement the application.
*/

/* USER CODE BEGIN (2) */
uint16 isr=0;
/* USER CODE END */

int main(void)
{
/* USER CODE BEGIN (3) */

    /* Initialize RTI driver */
    rtiInit();
    gioInit();

    /* Set high end timer GIO port hetPort pin direction to all output */
    gioSetDirection(hetPORT1, 0xFFFFFFFF);

    /* Enable RTI Compare 0 interrupt notification */
    rtiEnableNotification(rtiNOTIFICATION_COMPARE1);

    /* Enable IRQ - Clear I flag in CPS register */
    /* Note: This is usually done by the OS or in an svc dispatcher */
    _enable_IRQ();

    /* Start RTI Counter Block 0 */
    rtiStartCounter(rtiCOUNTER_BLOCK0);

    /* Run forever */
    while(1);

/* USER CODE END */

   // return 0;
}


/* USER CODE BEGIN (4) */
/* Note-You need to remove rtiNotification from notification.c to avoid redefinition */
void rtiNotification(uint32 notification)
{
/*  enter user code between the USER CODE BEGIN and USER CODE END. */
  
    isr++;

    gioToggleBit(gioPORTA, 4);
}
/* USER CODE END */