AnsweredAssumed Answered

KSDK-1.1 SPI DMA

Question asked by Ole Asbjorn Fadum on Jan 14, 2015
Latest reply on Jan 18, 2015 by Alice_Yang

I'm using KDS-2.0.0 and KSDK-1.1.0.

When adding a spi (fsl_dspi) device to my project I could set IRQ priorities and vector, but how do I enable DMA?

I see there is two different initialization functions:

    1. DSPI_DRV_MasterInit

    2. DSPI_DRV_EdmaMasterInit

 

I have not found out how to make PEx to use the DMA type. In Cpu.c the DSPI_DRV_MasterInit() is called.

 

Should I in my own code:

     1. DSPI_DRV_MasterDeinit()

         DSPI_DRV_EdmaMasterInit()

     2. Just call DSPI_DRV_EdmaMasterInit()

Outcomes