File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -420,23 +420,23 @@ macro_rules! adc_hal {
420
420
}
421
421
422
422
/// Enable interrupt for EOC (end of convert)
423
- pub fn enable_eoc_interrupt( ) {
424
- self . rb. cr1( ) .. write( |w| w. eocie( ) . set_bit( ) ) ;
423
+ pub fn enable_eoc_interrupt( & mut self ) {
424
+ self . rb. cr1( ) . write( |w| w. eocie( ) . set_bit( ) ) ;
425
425
}
426
426
427
427
/// Disable interrupt for EOC (end of convert)
428
- pub fn disable_eoc_interrupt( ) {
429
- self . rb. cr1( ) .. write( |w| w. eocie( ) . clear_bit( ) ) ;
428
+ pub fn disable_eoc_interrupt( & mut self ) {
429
+ self . rb. cr1( ) . write( |w| w. eocie( ) . clear_bit( ) ) ;
430
430
}
431
431
432
432
/// Enable interrupt for JEOC (EOC for injected channels)
433
- pub fn enable_jeoc_interrupt( ) {
434
- self . rb. cr1( ) .. write( |w| w. jeocie( ) . set_bit( ) ) ;
433
+ pub fn enable_jeoc_interrupt( & mut self ) {
434
+ self . rb. cr1( ) . write( |w| w. jeocie( ) . set_bit( ) ) ;
435
435
}
436
436
437
437
/// Disable interrupt for JEOC (EOC for injected channels)
438
- pub fn disable_jeoc_interrupt( ) {
439
- self . rb. cr1( ) .. write( |w| w. jeocie( ) . clear_bit( ) ) ;
438
+ pub fn disable_jeoc_interrupt( & mut self ) {
439
+ self . rb. cr1( ) . write( |w| w. jeocie( ) . clear_bit( ) ) ;
440
440
}
441
441
}
442
442
You can’t perform that action at this time.
0 commit comments