I use the example examle that calling the fuction(mcbspDigLpbkApp()) alonly.But it can't ran to status = mcbspSubmitChan(hMcbspRxChan, (void *)&rxFrame).
Void main(Void) { Task_Params taskParams; EDMA3_DRV_Result edmaResult = 0; int j=0; uint8_t uchValue; /* Get the core number. */ coreNum = CSL_chipReadReg (CSL_CHIP_DNUM); /* MCBSP Driver Initialization: This should always be called before * invoking the MCBSP Driver. */ mcbspInit(); /* Device Specific MCBSP Initializations */ McbspDevice_init(); /* Initialize EDMA3 library */ hEdma[0] = edma3init(0, &edmaResult); Gpio_init(); Fpga_reset(); mcbspDigLpbkApp(); /* Create the Digital Loopback Application Task */ Task_Params_init(&taskParams); Task_create(decodetask, &taskParams, NULL); /* Start BIOS */ BIOS_start(); return; }
But it work right and can ran to status = mcbspSubmitChan(hMcbspRxChan, (void *)&rxFrame) when I use the original way .Does this example must use a task to send mcbsp datas???
Void main(Void) { Task_Params taskParams; EDMA3_DRV_Result edmaResult = 0; int j=0; uint8_t uchValue; /* Get the core number. */ coreNum = CSL_chipReadReg (CSL_CHIP_DNUM); /* MCBSP Driver Initialization: This should always be called before * invoking the MCBSP Driver. */ mcbspInit(); /* Device Specific MCBSP Initializations */ McbspDevice_init(); /* Initialize EDMA3 library */ hEdma[0] = edma3init(0, &edmaResult); Gpio_init(); Fpga_reset(); /* Create the Digital Loopback Application Task */ Task_Params_init(&taskParams); Task_create(mcbspDigLpbkApp, &taskParams, NULL); /* Start BIOS */ BIOS_start(); return; }