Covers a test scenario described in following issue: https://github.com/espressif/esp-idf/issues/11915
GDMA driver will be adapted to more DMA peripherals in the future. This commit is to extract a minimal interface in the hal layer