File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ impl<I: AdcInstance> Adc<I> {
151
151
}
152
152
153
153
/// Clear the specified interrupt flags
154
+ #[ cfg( feature = "async" ) ]
154
155
#[ inline]
155
156
pub ( super ) fn clear_flags ( & mut self , flags : & Flags ) {
156
157
unsafe {
@@ -162,6 +163,7 @@ impl<I: AdcInstance> Adc<I> {
162
163
#[ inline]
163
164
pub ( super ) fn clear_all_flags ( & mut self ) {
164
165
unsafe {
166
+ // nb SAMD1x and SAMD2x have a SYNCRDY flag, SAMx5x doesn't
165
167
self . adc . intflag ( ) . write ( |w| w. bits ( 0b1111 ) ) ;
166
168
}
167
169
}
Original file line number Diff line number Diff line change @@ -229,6 +229,7 @@ impl<I: AdcInstance> Adc<I> {
229
229
}
230
230
231
231
/// Clear the specified interrupt flags
232
+ #[ cfg( feature = "async" ) ]
232
233
#[ inline]
233
234
pub ( super ) fn clear_flags ( & mut self , flags : & Flags ) {
234
235
unsafe {
You can’t perform that action at this time.
0 commit comments