I have a tms570ls3137 hdk board. I want to make delay with timer. I can create delay without timer but i want to use that way.
I read TI rti application notes and i wrote that codes...Assume i added all headers and C files (halcogen v3.1.1).
-----------------------------------------------------------------------------------------------------------------
Main.c file;
-----------------------------------------------------------------------------------------------------------------
void timer()
{
rtiEnableNotification(rtiNOTIFICATION_COMPARE2);
rtiStartCounter(rtiCOUNTER_BLOCK0);
}
void main()
{
hetInit();
rtiInit();
_enable_FIQ();
_enable_IRQ();
hetPORT1->DIR = 0x80000001;
while(1){
hetPORT1->DOUT = 0x00000001;
hetPORT1->DSET = 0x00000001;
timer();
}
}
-----------------------------------------------------------------------------------------------------------------
And notification.c file;
-----------------------------------------------------------------------------------------------------------------
void rtiNotification(uint32_t notification)
{
hetInit();
hetPORT1->DIR = 0x80000001;
hetPORT1->DOUT = 0x80000000;
hetPORT1->DSET = 0x80000000;
}
I am sure codes are true. But not work :(