File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ impl ExtiExt for EXTI {
118
118
}
119
119
}
120
120
121
+ /// Disables the interrupt on `line`.
121
122
fn unlisten ( & self , line : u8 ) {
122
123
assert_line_valid ( line) ;
123
124
@@ -126,16 +127,22 @@ impl ExtiExt for EXTI {
126
127
bb:: clear ( & self . imr , line) ;
127
128
}
128
129
130
+ /// Marks `line` as "pending".
131
+ ///
132
+ /// This will cause an interrupt if the EXTI was previously configured to
133
+ /// listen on `line`.
129
134
fn pend_interrupt ( & self , line : u8 ) {
130
135
assert_line_valid ( line) ;
131
136
132
137
bb:: set ( & self . swier , line) ;
133
138
}
134
139
140
+ /// Get a bitmask of currently pending IRQs.
135
141
fn get_pending_irq ( & self ) -> u32 {
136
142
self . pr . read ( ) . bits ( )
137
143
}
138
144
145
+ /// Marks `line` as "not pending".
139
146
fn clear_irq ( & self , line : u8 ) {
140
147
assert_line_valid ( line) ;
141
148
@@ -149,7 +156,8 @@ impl ExtiExt for EXTI {
149
156
///
150
157
/// # Panics
151
158
///
152
- /// Panics, if `line` is not between 0 and 15 (inclusive).
159
+ /// Panics, if `line` is an invalid EXTI line (reserved or not defined).
160
+ /// Check the Reference Manual for a list of valid lines.
153
161
fn wait_for_irq < M > ( & mut self , line : u8 , mut power_mode : M )
154
162
where M : PowerMode
155
163
{
You can’t perform that action at this time.
0 commit comments