Configurable dma channel