This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

what's the difference betweed HWI_dispatchPlug and EDMA_intHook



Hi,experts:

HWI_dispatchPlug(interrupt number, (Fxn)EDMA_intDispatcher, -1, NULL);

EDMA_intHook(tcc,edmaisr)

void edmaisr()

{

 ....../

}

I was confused when used these two BIOS API?Anyone who can help me ?       thanks!

  • Hi steve zhang,

    Are you using the PSP drivers and EDMA drivers?  If so, what versions?

    Also, what version of BIOS are you using?

    I'm not familiar with the EDMA code, but I can try to help you.

    HWI_dispatchPlug() is a BIOS API that's used to map a function to an interrupt at run time.

    steve zhang said:
    HWI_dispatchPlug(interrupt number, (Fxn)EDMA_intDispatcher, -1, NULL);

    The above code looks to be mapping the EDMA function EDMA_intDispatcher to some interrupt number.  This will cause the EDMA_intDispatcher function to run as the ISR for that interrupt.

    steve zhang said:
    EDMA_intHook(tcc,edmaisr)

    I took a quick look at the doxygen API docs that ship with EDMA version edma3_lld_02_11_05_02.  I didn't see this function.  Do you know where this function comes from?

    Steve

  • EDMA_intHook was include in CSL (chip support lib) C6000.  it could be find in spru401 pdf