dma_claim_unused_channel() function
Claim a free dma channel
Syntax
int dma_claim_unused_channel(bool required); Arguments
required
if true the function will panic if none are available
Return value
the dma channel number or -1 if required was false, and none were free
Examples
dma_claim_unused_channel() is referenced by 6 libraries and example projects: