Other Parts Discussed in Thread: OMAP-L138
Tool/software: TI-RTOS
Hello,
I am try to post a swi from my hardware ISR for EDMA(see below) and it woked if I create hwi using TI rtos configuration file, but if I use my code for set this hardware interrupt, then no swi is posted. I had verifed that if I remove Swi_post(swi_handle1) from ISR, then ISR is called and running.
My question is if I have to use the configuration file or rtos API to create hwi to be able to post a swi from ISR?
void interrupt(void)
{
switch(EDMA_3CC_IPR)
{
case 1: // TCC = 0
procBuffer = PING; // process ping
EDMA_3CC_ICR = 0x0001; // clear EDMA3 IPR bit TCC
break;
case 2: // TCC = 1
procBuffer = PONG; // process pong
EDMA_3CC_ICR = 0x0002; // clear EDMA3 IPR bit TCC
break;
default: // may have missed an interrupt
EDMA_3CC_ICR = 0x0003; // clear EDMA3 IPR bits 0 and 1
break;
}
EVTCLR0 = 0x00000100;
buffer_full = 1; // flag EDMA3 transfer
Swi_post(swi_handle1);
return;
}
I am using "tirtos_c6000_2_00_01_23". is this the latest TI rtos for OMAP-L138?
Thanks in advance!
Ron