when porting from MQX 4.0.2 for K60 to MQX 4.0.2 for K64, we hit a problem.
Apparently, the BSP for K64 has DSPI1 dma turned off (Vs K60 with DSPI1 dma turned on).
Since we rely on the DSPI1 dma in our app, here are some questions regarding the K64 port:
in twrk64F120m.h, the BSP_DSPI1_DMA_RX_SOURCE, BSP_DSPI1_DMA_TX_SOURCE are not the same as in twrk60f120m.h
#define BSP_DSPI1_DMA_RX_CHANNEL (2)
#define BSP_DSPI1_DMA_TX_CHANNEL (3)
#define BSP_DSPI1_DMA_RX_SOURCE (16) // was 18 in twrk60f120m.h
#define BSP_DSPI1_DMA_TX_SOURCE (16) // was 19 in twrk60f120m.h
If I need to enable DMA on DSPI1,
1) can I use any number other than 16 in RX_SOUCE, TX_SOURCE?
2) do I need different number for RX_SOURCE and TX_SOURCE?
3) what does the number mean anyway? Does it tie to IRQ assignment or DMS source id as described in the K64 Hardware Reference Manual?
If so, is there other porting of the MQX BSP that need to be modified to match with the RX_SOURCE and TX_SOURCE?