Hello !!
I created 2 thread 1 to run video loop back and another to print the time from rtc register in the serial port. I use the 2 codes from starteweare. At he beginning the 2 threads work but when the rtc interrupt start , the thread that display video not run.
It seem that i need to enable the rtc interrupt in sysbios like Hwi interrupt :
The program is blocked at this :
/* Enabling interrupts.*/
SetupInt();
ConfigureIntRTC();
/* Enabling RTC interrupts. Configuring RTC to interrupt every second.*/
RTCIntTimerEnable(SOC_RTC_0_REGS, RTC_INT_EVERY_SECOND);
How to do the some think in sys bios. I hink i need to do something like this :
/* Create the RTC Interrupt*/
Hwi_Params_init(¶ms);
params.eventId = 63;
params.enableInt = FALSE;
Hwi3 = Hwi_create(10, &RTCIsr, ¶ms, &eb);
if (Hwi3 == NULL)
{
System_printf("Hwi_create() failed for RTC!\n");
BIOS_exit(0);
}
Could anyone please help. I attached the project.
Think you8461.test multi.zip