/* Returns current source and destination addresses for a particular parameter RAM slot. Its channel should not be active when this is called.  */
void edma_get_position(unsigned slot, rt_uint32_t *src, rt_uint32_t *dst)
/* Returns current source and destination addresses for a particular parameter RAM slot. Its channel should not be active when this is called.  */
void edma_get_position(unsigned slot, rt_uint32_t *src, rt_uint32_t *dst)
{
    struct edmacc_param temp;
    unsigned ctlr;
    ctlr = EDMA_CTLR(slot);
    slot = EDMA_CHAN_SLOT(slot);
    edma_read_slot(EDMA_CTLR_CHAN(ctlr, slot), &temp);
    if (src != RT_NULL)
        *src = temp.src;
    if (dst != RT_NULL)
        *dst = temp.dst;
}