Aarthi CR(deleted)
12/03/2014 9:47 AM
post112523
|
Environment: iMX6, Qnx 6.6
We are developing driver for SPI Slave in iMX6 with DMA using DMA library (libdma-sdma-imx6x.so) provided in BSP.
Initialization for DMA and SPI is done accordingly. (Peripheral to Memory and vice versa)
During DMA initialization we attached the flag attach_flags=DMA_ATTACH_EVENT_ON_COMPLETE.
We are getting an event when the DMA transfer is completed and works fine as expected.
Now the problem is:
Our project need is to have the driver as library. So we created SPISlave.so and this in turn includes the DMA library
libdma-sdma-imx6x.so.
Now we are not receiving the event DMA_ATTACH_EVENT_ON_COMPLETE.
Should we do anything more to receive the events if we have the driver as .so?
/************** Readme.txt **********************************/
Supported Attach Flags:
DMA_ATTACH_EVENT_ON_COMPLETE = 0x00000010, /* Want an event on transfer completion */
DMA_ATTACH_EVENT_PER_SEGMENT = 0x00000020, /* Want an event per fragment transfer completion */”
/************************************************************/
Thanks,
Aarthi CR
|
|
|