File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ mod app {
197197 i2s3_driver. set_error_interrupt ( true ) ;
198198
199199 // set up an interrupt on WS pin
200- let ws_pin = i2s3_driver. i2s_peripheral_mut ( ) . ws_pin_mut ( ) ;
200+ let ws_pin = i2s3_driver. ws_pin_mut ( ) ;
201201 ws_pin. make_interrupt_source ( & mut syscfg) ;
202202 ws_pin. trigger_on_edge ( & mut exti, Edge :: Rising ) ;
203203 // we will enable i2s3 in interrupt
@@ -351,7 +351,6 @@ mod app {
351351 log:: spawn ( "i2s3 Frame error" ) . ok ( ) ;
352352 i2s3_driver. disable ( ) ;
353353 i2s3_driver
354- . i2s_peripheral_mut ( )
355354 . ws_pin_mut ( )
356355 . enable_interrupt ( exti) ;
357356 }
@@ -367,7 +366,7 @@ mod app {
367366 fn exti4 ( cx : exti4:: Context ) {
368367 let i2s3_driver = cx. shared . i2s3_driver ;
369368 let exti = cx. shared . exti ;
370- let ws_pin = i2s3_driver. i2s_peripheral_mut ( ) . ws_pin_mut ( ) ;
369+ let ws_pin = i2s3_driver. ws_pin_mut ( ) ;
371370 ws_pin. clear_interrupt_pending_bit ( ) ;
372371 // yes, in this case we already know that pin is high, but some other exti can be triggered
373372 // by several pins
You can’t perform that action at this time.
0 commit comments