APBDMA_CMD_WAIT4ENDCMD
chan->chan_cmds[0].control |= APBDMA_CMD_WAIT4ENDCMD;
chan->chan_cmds[tail_index].control |= APBDMA_CMD_WAIT4ENDCMD;