Hello,
Using HALCOGEN 4.0.0 and CCS 6, I'm just looking to implement an interrupt every millisecond to keep time, etc.
It looks to me like using RTI is the best way to do this.
In sys_main.c I have
/* initialize real time interrupt driver */ rtiInit(); /* Enable RTI Compare 0 interrupt notification */ rtiEnableNotification(rtiNOTIFICATION_COMPARE0); /* 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);
It looks like the timer is incrementing in RTIFRC0, and the RTICOMP0 register is updating appropriately. But I don't see how to get an interrupt to execute. I thought that calling rtiEnableNotification() enables that interrupt, so I put my desired ISR code in rtiNotification() in notification.c. But that isn't doing the trick.
Could anyone explain what it is that I'm missing or doing wrong? Do I have to use RTI in conjuction with VIM?
Thanks,
Matt