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.
uint32_t edma3Id;
EDMA3_RM_Handle edmaHandle = NULL;
EDMA3_DRV_Result edmaResult = EDMA3_DRV_E_INVALID_PARAM;
/* SPI params structure */
SPI_Params spiParams;
/* SPI Hardware attributes */
SPI_v0_HWAttrs spiHwAttr;
// Initialize edma3 driver handle
edma3Id = 0;
edmaHandle = (EDMA3_RM_Handle)EDMA3_init(edma3Id, &edmaResult);
/* Get the default SPI init configurations */
SPI_socGetInitCfg(configIndex, &spiHwAttr);
/* Set the DMA related init config */
spiHwAttr.pinMode = SPI_PINMODE_4_PIN;
spiHwAttr.edmaHandle = edmaHandle;
spiHwAttr.dmaMode = true;
spiHwAttr.enableIntr = false;
/* Set customized SPI hard attr to spi_config list*/
SPI_socSetInitCfg(configIndex, &spiHwAttr);
/* Get default SPI params configurations */
SPI_Params_init(&spiParams);
/* Config SPI params*/
spiParams.transferMode = SPI_MODE_BLOCKING;
spiParams.frameFormat = SPI_POL1_PHA0;
spiParams.dataSize = 8;
spiParams.bitRate = bitRate;
请问以上配置需要改什么地方呢?