diff --git a/esp-hal-common/src/dma/pdma.rs b/esp-hal-common/src/dma/pdma.rs index f4ddcbc48..976de292b 100644 --- a/esp-hal-common/src/dma/pdma.rs +++ b/esp-hal-common/src/dma/pdma.rs @@ -224,7 +224,8 @@ macro_rules! ImplSpiChannel { impl [] { /// Configure the channel for use /// - /// Descriptors should be sized as (BUFFERSIZE / 4092) * 3 + /// Descriptors should be sized as `((BUFFERSIZE + 4091) / 4092) * 3`. I.e., to + /// transfer buffers of size `1..=4092`, you need 3 descriptors. pub fn configure<'a>( self, burst_mode: bool, @@ -462,7 +463,8 @@ macro_rules! ImplI2sChannel { impl [] { /// Configure the channel for use /// - /// Descriptors should be sized as (BUFFERSIZE / 4092) * 3 + /// Descriptors should be sized as `((BUFFERSIZE + 4091) / 4092) * 3`. I.e., to + /// transfer buffers of size `1..=4092`, you need 3 descriptors. pub fn configure<'a>( self, burst_mode: bool,