So I may be getting more concerned, again, that I NEED to find an "official" download.
While I suspect the example code on github surely originated from Freescale/NXP and it has the FSL copyright banners, I am having difficulty getting it to work when ported to my target. I am also concerned that it may not be fully legitimate, proven code. It is supposed to work on a K22F-FRDM board, which shares the sub-family reference manual with one of the two target boards I am working on. When reviewing the DMAMUX sources in Table 3-19 in the appropriate sub-family reference manual, as expected, the SPI1 source is a single TX/RX source, "16U". However, the example shows the slave SPI DMA using "16U" as the RX source, but "17U" as the TX source. They should both be "16U", so I am already seeing something not right with the example I am trying to work from. :smileysad:
#define EXAMPLE_DSPI_SLAVE_DMA_RX_REQUEST_SOURCE 16U
/*
* WOAH! Timeout! SPI1 is a shared source, both RX/TX on 16U according
* to the sub-family reference manual Table 3-19. "17U" is marked
* "Reserved". Is this a good, WORKING example????
*/
#define EXAMPLE_DSPI_SLAVE_DMA_TX_REQUEST_SOURCE 17U