@@ -8,7 +8,9 @@ use core::ops::Deref;
8
8
use core:: sync:: atomic:: { compiler_fence, Ordering :: SeqCst } ;
9
9
10
10
#[ cfg( feature = "9160" ) ]
11
- use crate :: pac:: { twim0_ns as twim0, TWIM0_NS as TWIM0 } ;
11
+ use crate :: pac:: {
12
+ twim0_ns as twim0, TWIM0_NS as TWIM0 , TWIM1_NS as TWIM1 , TWIM2_NS as TWIM2 , TWIM3_NS as TWIM3 ,
13
+ } ;
12
14
13
15
#[ cfg( not( feature = "9160" ) ) ]
14
16
use crate :: pac:: { twim0, TWIM0 } ;
87
89
}
88
90
89
91
/// Disable the instance.
90
- ///
92
+ ///
91
93
/// Disabling the instance will switch off the peripheral leading to a
92
94
/// considerably lower energy use. However, while the instance is disabled
93
95
/// it is not possible to use it for communication. The configuration of
@@ -471,9 +473,28 @@ mod sealed {
471
473
impl sealed:: Sealed for TWIM0 { }
472
474
impl Instance for TWIM0 { }
473
475
474
- #[ cfg( any( feature = "52832" , feature = "52833" , feature = "52840" ) ) ]
476
+ #[ cfg( any(
477
+ feature = "52832" ,
478
+ feature = "52833" ,
479
+ feature = "52840" ,
480
+ feature = "9160"
481
+ ) ) ]
475
482
mod _twim1 {
476
483
use super :: * ;
477
484
impl sealed:: Sealed for TWIM1 { }
478
485
impl Instance for TWIM1 { }
479
486
}
487
+
488
+ #[ cfg( feature = "9160" ) ]
489
+ mod _twim2 {
490
+ use super :: * ;
491
+ impl sealed:: Sealed for TWIM2 { }
492
+ impl Instance for TWIM2 { }
493
+ }
494
+
495
+ #[ cfg( feature = "9160" ) ]
496
+ mod _twim3 {
497
+ use super :: * ;
498
+ impl sealed:: Sealed for TWIM3 { }
499
+ impl Instance for TWIM3 { }
500
+ }
0 commit comments