DMA interrupt

Hello everybody,

   I need to use DMA in my projects. After i generate my DMA buffer
and obtain datas into this buffer, i wonder, is there an interrupt
that inform or alert me when DMA buffer is full ( or when DMA buffer
over 32 bytes). I know there are some counters on DMA but i dont want
to check them in while. Any suggestion?

Best Regards

Fatih

Hello everybody,

I need to use DMA in my projects. After i generate my DMA buffer
and obtain datas into this buffer, i wonder, is there an interrupt
that inform or alert me when DMA buffer is full ( or when DMA buffer
over 32 bytes). I know there are some counters on DMA but i dont want
to check them in while. Any suggestion?

I'd have to look at my code, but I think there is a call back you can
register that is called when a DMA completes. I know what you want is
possible, because I have such code in a a driver I wrote :slight_smile:

Philip

Then i am waiting for your code :slight_smile: Could be set the interrupt to be
generated for specific amount of data or interrupt is only generated
when the buffer is full? Which one did you mean?

Fatih

Then i am waiting for your code :slight_smile: Could be set the interrupt to be
generated for specific amount of data or interrupt is only generated
when the buffer is full? Which one did you mean?

When I request the dma channel, I register the callback:

       if (omap_request_dma(OMAP_DMA_NO_DEVICE, "usrp-e-rx",
                        usrp_rx_dma_irq, (void *) rx_dma, &rx_dma->ch)) {

Philip

What is your callback function?