DMA re configuration
Hi All,
We are using different ADC group to access DMA channel. We have 3 ADC groups, Group1 ADC channel need to read continuously. So it should stop the other ADC channels to accessing the DMA. If it is accessing, it should stop it and reconfigure with Group1 configs.
We are using below line of code to do it. Please let us know, is this the correct way or we need to check some other registers?
edmaChannelStop(adcp->adc_dma_channel);
#define edmaChannelStop(channel) { \
edmaDisableRequest(channel); \
edmaClearDone(channel); \
}
#define edmaDisableRequest(channel) (SPC5_EDMA.CERQR.R = (uint8_t)(channel))
#define edmaClearDone(channel) (SPC5_EDMA.CDSBR.R = (uint8_t)(channel))
Thanks,
Basava.
