Hi Is any body is having idea how to can interrupts in VDK for using LinkPort DMA. I did test data communication using DMA in the LinkPorts,
referenced by example code "Producer_Consumer_MP" except for Multicore process & message.
when I sarted this code it did not enter the ISR function and driver open funtion.
I don't know What is problem.
with regards,
Nathan
Hi
Thank you for your attend to the my linkport problem.
I am Testing this code on the EZ-KIT
According to the following Producer_Consumer_MP example
case VDK::kIO_Init:
ret_val = Init(inUnion);
break;
case VDK::kIO_Activate:
ret_val = Activate(inUnion);
case VDK::kIO_Open:
ret_val = Open(inUnion);
...
and
int LinkPort::Init (const VDK::DispatchUnion &inUnion)
{
// Clear the flag bits
m_readFlags = 0;
m_writeFlags = 0;
// Create the deviceflags
m_DevFlagRead = VDK::CreateDeviceFlag();
m_DevFlagWrite = VDK::CreateDeviceFlag();
// Get the link number from the boot I/O object initializer
m_linkNo = *((long *)inUnion.Init_t.pInitInfo);
return 0;
}
so I think This Part is Initiation of Linkport .
and procedure of Linport Driver in VDK is VDK::kIO_Init -> VDK::kIO_Open
Where do i mistake about it?
If I do not use VDK, I can use Link port in DMA mode. but I want to use LinkPort With VDK Based.
Where Can i get useful Example Code about VDK?
Best Regards,