Other Parts Discussed in Thread: OMAPL138, PCM1864
Hi,
In my project I am using Sitara evmAM572x board, I am programming the DSP1 core, I have connected the circular microphone board ( CMB ) to McASP7 bus of evmAM572x, CMB is configured as master, I can see all the signals out of the CMB when i probe the lines. I want to configure McASP7 of sitara processor as slave. How can I do it?
If I assume that if McASP7 receive clocks and hence it automatically acts as slave, I am expecting the DMA interrupts to appear. but I am unable to see it, is there any reference source code to achive this?
#define MCASP_RX_DMA_CH CSL_EDMA3_CHA_MCASP6_RX
#define MCASP_TX_DMA_CH CSL_EDMA3_CHA_MCASP2_TX
extern EDMA3_DRV_GblConfigParams sampleEdma3GblCfgParams[];
/* EnableEDMA event in the SampleCfg*/
static void enableEDMAHwEvent(uint32_t edmaNum, uint32_t eventNo) {
sampleEdma3GblCfgParams[edmaNum].dmaChannelHwEvtMap[eventNo/32] |= (1 << (eventNo%32));
}
Below is my code snippet.
/* 1. EDMA Initializations */
EDMA3_DRV_Result edmaResult = 0;
enableEDMAHwEvent(EDMACC_NUM,MCASP_RX_DMA_CH);
enableEDMAHwEvent(EDMACC_NUM,MCASP_TX_DMA_CH);
hEdma = edma3init(EDMACC_NUM, &edmaResult);
if (edmaResult != EDMA3_DRV_SOK)
{
/* Report EDMA Error
*/
MCASP_log("\nEDMA driver initialization unsuccessful\n");
}
else
{
MCASP_log("\nEDMA driver initialization successful.\n");
}
I am thinking that I have missed some configurations. Please suggest me for corrections.
Thanks and Regards,
Janardan M