how to write spi dma driver on non-OS environment

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

how to write spi dma driver on non-OS environment

596 Views
jackyliu
NXP Employee
NXP Employee

customer wrote the driver on non-OS environment. But the DMA can't be triged.

Original Attachment has been moved to: 353-spi.c

Labels (1)
0 Kudos
1 Reply

459 Views
jackyliu
NXP Employee
NXP Employee

I checked their codes, and found they don't trig DMA.
Below is my instruction:
In our mxs_spi_handle_message(), it call mxs_spi_setup_transfer() to setup spi speed. So you need to ask the customer to check if their spi speed is set correctly or not.
Then mxs_spi_handle_message() call
At the last , it call mxs_spi_txrx_dma().

0 Kudos