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 {
197
197
i2s3_driver. set_error_interrupt ( true ) ;
198
198
199
199
// 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 ( ) ;
201
201
ws_pin. make_interrupt_source ( & mut syscfg) ;
202
202
ws_pin. trigger_on_edge ( & mut exti, Edge :: Rising ) ;
203
203
// we will enable i2s3 in interrupt
@@ -351,7 +351,6 @@ mod app {
351
351
log:: spawn ( "i2s3 Frame error" ) . ok ( ) ;
352
352
i2s3_driver. disable ( ) ;
353
353
i2s3_driver
354
- . i2s_peripheral_mut ( )
355
354
. ws_pin_mut ( )
356
355
. enable_interrupt ( exti) ;
357
356
}
@@ -367,7 +366,7 @@ mod app {
367
366
fn exti4 ( cx : exti4:: Context ) {
368
367
let i2s3_driver = cx. shared . i2s3_driver ;
369
368
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 ( ) ;
371
370
ws_pin. clear_interrupt_pending_bit ( ) ;
372
371
// yes, in this case we already know that pin is high, but some other exti can be triggered
373
372
// by several pins
You can’t perform that action at this time.
0 commit comments