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 {
420420 }
421421
422422 /// 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( ) ) ;
425425 }
426426
427427 /// 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( ) ) ;
430430 }
431431
432432 /// 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( ) ) ;
435435 }
436436
437437 /// 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( ) ) ;
440440 }
441441 }
442442
You can’t perform that action at this time.
0 commit comments