pub fn channels(_: DMA, _: DMAMUX) -> [Option<Channel>; 32]
Expand description
Allocate all DMA channels.
The number of channels depends on CHANNEL_COUNT
, which may change
depending on feature selection.
When channels
returns, each element is guaranteed to hold Some
channel.
You may then take()
the channel, leaving None
in its place.