@@ -68,7 +68,12 @@ use crate::pac::{p0_ns as gpio, P0_NS as P0};
6868#[ cfg( feature = "5340-app" ) ]
6969use crate :: pac:: P0_S ;
7070
71- #[ cfg( not( any( feature = "9160" , feature = "5340-app" , feature = "5340-net" , feature = "51" ) ) ) ]
71+ #[ cfg( not( any(
72+ feature = "9160" ,
73+ feature = "5340-app" ,
74+ feature = "5340-net" ,
75+ feature = "51"
76+ ) ) ) ]
7277use crate :: pac:: { p0 as gpio, P0 } ;
7378
7479#[ cfg( any( feature = "52833" , feature = "52840" ) ) ]
@@ -104,12 +109,22 @@ impl<MODE> Pin<MODE> {
104109
105110 #[ inline]
106111 pub fn pin ( & self ) -> u8 {
107- #[ cfg( any( feature = "52833" , feature = "52840" , feature = "5340-app" , feature = "5340-net" ) ) ]
112+ #[ cfg( any(
113+ feature = "52833" ,
114+ feature = "52840" ,
115+ feature = "5340-app" ,
116+ feature = "5340-net"
117+ ) ) ]
108118 {
109119 self . pin_port & 0x1f
110120 }
111121
112- #[ cfg( not( any( feature = "52833" , feature = "52840" , feature = "5340-app" , feature = "5340-net" ) ) ) ]
122+ #[ cfg( not( any(
123+ feature = "52833" ,
124+ feature = "52840" ,
125+ feature = "5340-app" ,
126+ feature = "5340-net"
127+ ) ) ) ]
113128 {
114129 self . pin_port
115130 }
@@ -120,7 +135,7 @@ impl<MODE> Pin<MODE> {
120135 #[ cfg( any( feature = "52833" , feature = "52840" , feature = "5340-net" ) ) ]
121136 {
122137 if self . pin_port & 0x20 == 0 {
123- Port :: Port0
138+ Port :: Port0
124139 } else {
125140 Port :: Port1
126141 }
@@ -134,7 +149,12 @@ impl<MODE> Pin<MODE> {
134149 Port :: Port0Secure
135150 }
136151 }
137- #[ cfg( not( any( feature = "52833" , feature = "52840" , feature = "5340-app" , feature = "5340-net" ) ) ) ]
152+ #[ cfg( not( any(
153+ feature = "52833" ,
154+ feature = "52840" ,
155+ feature = "5340-app" ,
156+ feature = "5340-net"
157+ ) ) ) ]
138158 {
139159 Port :: Port0
140160 }
@@ -343,7 +363,12 @@ use crate::pac::gpio::pin_cnf;
343363#[ cfg( any( feature = "5340-app" , feature = "5340-net" , feature = "9160" ) ) ]
344364use crate :: pac:: p0_ns:: pin_cnf;
345365
346- #[ cfg( not( any( feature = "9160" , feature = "5340-app" , feature = "5340-net" , feature = "51" ) ) ) ]
366+ #[ cfg( not( any(
367+ feature = "9160" ,
368+ feature = "5340-app" ,
369+ feature = "5340-net" ,
370+ feature = "51"
371+ ) ) ) ]
347372use crate :: pac:: p0:: pin_cnf;
348373
349374impl OpenDrainConfig {
0 commit comments