@@ -15,7 +15,15 @@ use crate::pac::{
15
15
SPIS0_NS as SPIS0 ,
16
16
} ;
17
17
18
- #[ cfg( not( feature = "9160" ) ) ]
18
+ #[ cfg( feature = "52811" ) ]
19
+ use crate :: pac:: {
20
+ spis1:: {
21
+ self as spis0, _EVENTS_ACQUIRED, _EVENTS_END, _EVENTS_ENDRX, _TASKS_ACQUIRE, _TASKS_RELEASE,
22
+ } ,
23
+ SPIS0 , SPIS1 ,
24
+ } ;
25
+
26
+ #[ cfg( not( any( feature = "9160" , feature = "52811" ) ) ) ]
19
27
use crate :: pac:: {
20
28
spis0:: { self , _EVENTS_ACQUIRED, _EVENTS_END, _EVENTS_ENDRX, _TASKS_ACQUIRE, _TASKS_RELEASE} ,
21
29
SPIS0 ,
@@ -598,7 +606,7 @@ mod sealed {
598
606
impl Sealed for super :: SPIS0 { }
599
607
#[ cfg( not( any( feature = "9160" , feature = "52810" ) ) ) ]
600
608
impl Sealed for super :: SPIS1 { }
601
- #[ cfg( not( any( feature = "9160" , feature = "52810" ) ) ) ]
609
+ #[ cfg( not( any( feature = "9160" , feature = "52811" , feature = " 52810") ) ) ]
602
610
impl Sealed for super :: SPIS2 { }
603
611
}
604
612
@@ -607,20 +615,23 @@ pub trait Instance: sealed::Sealed + Deref<Target = spis0::RegisterBlock> {
607
615
}
608
616
609
617
impl Instance for SPIS0 {
610
- #[ cfg( not( any( feature = "9160" , feature = "52810" ) ) ) ]
618
+ #[ cfg( not( any( feature = "9160" , feature = "52811" , feature = " 52810") ) ) ]
611
619
const INTERRUPT : Interrupt = Interrupt :: SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0 ;
612
620
#[ cfg( feature = "9160" ) ]
613
621
const INTERRUPT : Interrupt = Interrupt :: UARTE0_SPIM0_SPIS0_TWIM0_TWIS0 ;
614
- #[ cfg( feature = "52810" ) ]
622
+ #[ cfg( any ( feature = "52811" , feature = " 52810") ) ]
615
623
const INTERRUPT : Interrupt = Interrupt :: SPIM0_SPIS0_SPI0 ;
616
624
}
617
625
618
626
#[ cfg( not( any( feature = "9160" , feature = "52810" ) ) ) ]
619
627
impl Instance for SPIS1 {
628
+ #[ cfg( not( feature = "52811" ) ) ]
620
629
const INTERRUPT : Interrupt = Interrupt :: SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1 ;
630
+ #[ cfg( feature = "52811" ) ]
631
+ const INTERRUPT : Interrupt = Interrupt :: TWIM0_TWIS0_TWI0_SPIM1_SPIS1_SPI1 ;
621
632
}
622
633
623
- #[ cfg( not( any( feature = "9160" , feature = "52810" ) ) ) ]
634
+ #[ cfg( not( any( feature = "9160" , feature = "52811" , feature = " 52810") ) ) ]
624
635
impl Instance for SPIS2 {
625
636
const INTERRUPT : Interrupt = Interrupt :: SPIM2_SPIS2_SPI2 ;
626
637
}
0 commit comments