Hi
See the "Chip Configuration" section chapter of the user's manual. Then the "DMA request multiplexer configuration" in it.
This gives a list of the DMA request sources for MUX 0 (and MUX 1 for bigger chips).
eg.
UART0 Rx is 2
UART0 Tx is 3
UART1 Rx is 4
UART1 Tx is 5
..
ADC0 is 40 (0x28)
>>for other channel its 0X36
Double-check this because it looks wrong: ADC1 is 0x29, ADC2 is 0x2a (on MUX 1 only) and ADC3 is 0x2b (on MUX 1 only).
Personally I don't like the code
DMAMUX_CHCFG = DMAMUX_CHCFG_ENBL | DMAMUX_CHCFG_SOURCE(28)
because it doesn't show whether the value 28 is hex or decimal, and also it is processor type dependent, in case a derivative were to have a different channel (which is not to necessarily to exclude is the future).
I prefer
DMAMUX_CHCFG = DMAMUX_CHCFG_ENBL | DMAMUX_CHCFG_SOURCE_ADC0
where
#define DMAMUX_CHCFG_SOURCE_ADC0 DMAMUX_CHCFG_SOURCE(28)
or simply
#define DMAMUX_CHCFG_SOURCE_ADC0 0x28
or to better match the user's manual, even
#define DMAMUX_CHCFG_SOURCE_ADC0 40
In this case the user doesn't even need to ask him-/herself where this strange number comes from (unless he/she really wants to understand all details). When the details are desired, the user can search for the define in question and immediately arrives at the complete list in a header file associated with the register and then still no further questions needed...
Regards
Mark