File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 2
2
//!
3
3
//! Currently DMA is only supported for STM32F303 MCUs.
4
4
5
+ // To learn about most of the ideas implemented here, check out the DMA section
6
+ // of the Embedonomicon: https://docs.rust-embedded.org/embedonomicon/dma.html
7
+
5
8
use crate :: {
6
9
pac:: { self , dma1:: ch:: cr} ,
7
10
rcc:: AHB ,
@@ -429,7 +432,14 @@ pub enum Event {
429
432
pub trait Channel : private:: Channel {
430
433
/// Is the interrupt flag for the given event set?
431
434
fn event_occurred ( & self , event : Event ) -> bool ;
432
- /// Clear the interrupt flag for the given event
435
+
436
+ /// Clear the interrupt flag for the given event.
437
+ ///
438
+ /// Passing `Event::Any` clears all interrupt flags.
439
+ ///
440
+ /// Note that the the global interrupt flag is not automatically cleared
441
+ /// even when all other flags are cleared. The only way to clear it is to
442
+ /// call this method with `Event::Any`.
433
443
fn clear_event ( & mut self , event : Event ) ;
434
444
435
445
/// Reset the control registers of this channel.
You can’t perform that action at this time.
0 commit comments