Skip to content

Commit

Permalink
Resolve #195 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokathor committed Jun 30, 2024
1 parent 429211b commit cf3f8f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ impl DmaControl {
pub const fn with_irq(self, irq: bool) -> Self {
Self(u16_with_bit(14, self.0, irq))
}
/// If the DMA unit is enabled.
/// If the DMA unit should be enabled.
///
/// When a configuration with an "enabled" flag set is written to the DMA's
/// control, the DMA still won't *actually* start until the appropriate start
/// time.
#[inline]
pub const fn with_enabled(self, enabled: bool) -> Self {
Self(u16_with_bit(15, self.0, enabled))
Expand Down

0 comments on commit cf3f8f9

Please sign in to comment.