gdma_disconnect() function
Disconnect GMA channel from peripheral
Arguments
dma_chan
GDMA channel handle, allocated by `gdma_new_channel`
Return value
- ESP_OK: Disconnect GDMA channel successfully - ESP_ERR_INVALID_ARG: Disconnect GDMA channel failed because of invalid argument - ESP_ERR_INVALID_STATE: Disconnect GDMA channel failed because DMA channel is not connected to any peripheral - ESP_FAIL: Disconnect DMA channel failed because of other error