Where can I find the steps necessary to configure DSPI with EDMA using Processor Expert on a Kinetis processor?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Where can I find the steps necessary to configure DSPI with EDMA using Processor Expert on a Kinetis processor?

630 Views
tomtalkington
Contributor III

First time with Processor Expert Driver Suite, Kinetis processors, KDSK, etc. etc.

 

Using PE I was able to get DSPI to work without DMA.  Now I want to configure it with DMA and am stuck.  Can't find any instructions, examples, forum posts nothing. Can someone point me to something to get me going?

 

You can see from my Components_Init() that it appears EDMA is being configured but the intializations for DSPI is still without DMA.  How to you tell the DSPI component that you want to use DMA?

 

void Components_Init(void)
{

  /*! dmaController1 Auto initialization start */
  EDMA_DRV_Init(&dmaController1_State,&dmaController1_InitConfig0);
  EDMA_DRV_RequestChannel(kEDMAAnyChannel, kDmaRequestMux0SPI0Tx, &dmaController1_ChnState0);
  /*! dmaController1 Auto initialization end */
  /*! spiCom1 Auto initialization start */
  OSA_InstallIntHandler(SPI0_IRQn, spiCom1_irqHandler);
  DSPI_DRV_MasterInit(FSL_SPICOM1,&spiCom1_MasterState,&spiCom1_MasterConfig0);
  DSPI_DRV_MasterConfigureBus(FSL_SPICOM1,&spiCom1_BusConfig0,&spiCom1_calculatedBaudRate);
  NVIC_SetPriority(SPI0_IRQn, 112U);
  /*! spiCom1 Auto initialization end */
  /*! gpio1 Auto initialization start */
  OSA_InstallIntHandler(PORTB_IRQn, PORTB_IRQHandler);
  OSA_InstallIntHandler(PORTC_IRQn, PORTC_IRQHandler);
  GPIO_DRV_Init(gpio1_InpConfig0,gpio1_OutConfig0);
  NVIC_SetPriority(PORTB_IRQn, 112U);
  NVIC_SetPriority(PORTC_IRQn, 112U);
  /*! gpio1 Auto initialization end */
    /* Debug console initialization */
    DbgConsole_Init(BOARD_DEBUG_UART_INSTANCE, DEBUG_UART_BAUD, DEBUG_UART_TYPE);
}

Labels (1)
0 Kudos
Reply
0 Replies