Hi All...
I am running on the DM8168 DaVinci chip and working on a DSP application for the C674x core. On the A8 we have a Linux driver using DMA to read/write data to/from the McASP. When the transfer is finished, the McASP driver will raise an interrupt (EDMAINT, interrupt 20) to indicate to the DSP that it is ready for the DMA data to be read.
I am using Hwi_create to create an Hwi instance for the EDMAINT interrupt, but I am running into lots of problems. Here's my call to Hwi_create:
Hwi_Params_init(&hwiParams);
hwiParams.arg = 0;
Error_init(&eb);
hwi0 = Hwi_create(20, EurekaISR, &hwiParams, &eb);
if (hwi0 == NULL)
{
LOGINFO(__MGR__, "ERROR: Could not create Eureka interrupt handler\n");
if (Error_check(&eb)) {
String mystring;
UInt16 errcode;
mystring = Error_getMsg(&eb);
errcode = Error_getCode(&eb);
printf("Got error from HWI_CREATE: code: %d string:%s!!!!!!!!!!!!!!!!!!\n",errcode,mystring);
}
}
else {
printf("HWI_CREATE completed: %d\n", hwi0);
}