@@ -36,9 +36,9 @@ wrap_r! {
3636}
3737wrap_w ! {
3838 pub trait SrW {
39- fn rxne( & mut self ) -> usart1:: sr:: RXNE_W <REG >;
40- fn tc( & mut self ) -> usart1:: sr:: TC_W <REG >;
41- fn lbd( & mut self ) -> usart1:: sr:: LBD_W <REG >;
39+ fn rxne( & mut self ) -> usart1:: sr:: RXNE_W <' _ , REG >;
40+ fn tc( & mut self ) -> usart1:: sr:: TC_W <' _ , REG >;
41+ fn lbd( & mut self ) -> usart1:: sr:: LBD_W <' _ , REG >;
4242 }
4343}
4444
@@ -52,10 +52,10 @@ wrap_r! {
5252}
5353wrap_w ! {
5454 pub trait Cr2W {
55- fn add( & mut self ) -> usart1:: cr2:: ADD_W <REG >;
56- fn lbdl( & mut self ) -> usart1:: cr2:: LBDL_W <REG >;
57- fn lbdie( & mut self ) -> usart1:: cr2:: LBDIE_W <REG >;
58- fn linen( & mut self ) -> usart1:: cr2:: LINEN_W <REG >;
55+ fn add( & mut self ) -> usart1:: cr2:: ADD_W <' _ , REG >;
56+ fn lbdl( & mut self ) -> usart1:: cr2:: LBDL_W <' _ , REG >;
57+ fn lbdie( & mut self ) -> usart1:: cr2:: LBDIE_W <' _ , REG >;
58+ fn linen( & mut self ) -> usart1:: cr2:: LINEN_W <' _ , REG >;
5959 }
6060}
6161
@@ -72,13 +72,13 @@ wrap_r! {
7272}
7373wrap_w ! {
7474 pub trait Cr3W {
75- fn eie( & mut self ) -> usart1:: cr3:: EIE_W <REG >;
76- fn iren( & mut self ) -> usart1:: cr3:: IREN_W <REG >;
77- fn irlp( & mut self ) -> usart1:: cr3:: IRLP_W <REG >;
78- fn hdsel( & mut self ) -> usart1:: cr3:: HDSEL_W <REG >;
79- fn dmar( & mut self ) -> usart1:: cr3:: DMAR_W <REG >;
80- fn dmat( & mut self ) -> usart1:: cr3:: DMAT_W <REG >;
81- fn onebit( & mut self ) -> usart1:: cr3:: ONEBIT_W <REG >;
75+ fn eie( & mut self ) -> usart1:: cr3:: EIE_W <' _ , REG >;
76+ fn iren( & mut self ) -> usart1:: cr3:: IREN_W <' _ , REG >;
77+ fn irlp( & mut self ) -> usart1:: cr3:: IRLP_W <' _ , REG >;
78+ fn hdsel( & mut self ) -> usart1:: cr3:: HDSEL_W <' _ , REG >;
79+ fn dmar( & mut self ) -> usart1:: cr3:: DMAR_W <' _ , REG >;
80+ fn dmat( & mut self ) -> usart1:: cr3:: DMAT_W <' _ , REG >;
81+ fn onebit( & mut self ) -> usart1:: cr3:: ONEBIT_W <' _ , REG >;
8282 }
8383}
8484
@@ -89,7 +89,7 @@ wrap_r! {
8989}
9090wrap_w ! {
9191 pub trait GtprW {
92- fn psc( & mut self ) -> usart1:: gtpr:: PSC_W <REG >;
92+ fn psc( & mut self ) -> usart1:: gtpr:: PSC_W <' _ , REG >;
9393 }
9494}
9595
@@ -108,9 +108,9 @@ mod reg {
108108 fn lbd ( r : & R < Self > ) -> usart1:: sr:: LBD_R ;
109109 }
110110 pub trait SrW : RegisterSpec < Ux = u16 > + Writable + Resettable + Sized {
111- fn rxne ( w : & mut W < Self > ) -> usart1:: sr:: RXNE_W < Self > ;
112- fn tc ( w : & mut W < Self > ) -> usart1:: sr:: TC_W < Self > ;
113- fn lbd ( w : & mut W < Self > ) -> usart1:: sr:: LBD_W < Self > ;
111+ fn rxne ( w : & mut W < Self > ) -> usart1:: sr:: RXNE_W < ' _ , Self > ;
112+ fn tc ( w : & mut W < Self > ) -> usart1:: sr:: TC_W < ' _ , Self > ;
113+ fn lbd ( w : & mut W < Self > ) -> usart1:: sr:: LBD_W < ' _ , Self > ;
114114 }
115115
116116 pub trait Cr2R : RegisterSpec < Ux = u16 > + Readable + Sized {
@@ -120,10 +120,10 @@ mod reg {
120120 fn linen ( r : & R < Self > ) -> usart1:: cr2:: LINEN_R ;
121121 }
122122 pub trait Cr2W : RegisterSpec < Ux = u16 > + Writable + Resettable + Sized {
123- fn add ( w : & mut W < Self > ) -> usart1:: cr2:: ADD_W < Self > ;
124- fn lbdl ( w : & mut W < Self > ) -> usart1:: cr2:: LBDL_W < Self > ;
125- fn lbdie ( w : & mut W < Self > ) -> usart1:: cr2:: LBDIE_W < Self > ;
126- fn linen ( w : & mut W < Self > ) -> usart1:: cr2:: LINEN_W < Self > ;
123+ fn add ( w : & mut W < Self > ) -> usart1:: cr2:: ADD_W < ' _ , Self > ;
124+ fn lbdl ( w : & mut W < Self > ) -> usart1:: cr2:: LBDL_W < ' _ , Self > ;
125+ fn lbdie ( w : & mut W < Self > ) -> usart1:: cr2:: LBDIE_W < ' _ , Self > ;
126+ fn linen ( w : & mut W < Self > ) -> usart1:: cr2:: LINEN_W < ' _ , Self > ;
127127 }
128128
129129 pub trait Cr3R : RegisterSpec < Ux = u16 > + Readable + Sized {
@@ -136,13 +136,13 @@ mod reg {
136136 fn onebit ( r : & R < Self > ) -> usart1:: cr3:: ONEBIT_R ;
137137 }
138138 pub trait Cr3W : RegisterSpec < Ux = u16 > + Writable + Resettable + Sized {
139- fn eie ( w : & mut W < Self > ) -> usart1:: cr3:: EIE_W < Self > ;
140- fn iren ( w : & mut W < Self > ) -> usart1:: cr3:: IREN_W < Self > ;
141- fn irlp ( w : & mut W < Self > ) -> usart1:: cr3:: IRLP_W < Self > ;
142- fn hdsel ( w : & mut W < Self > ) -> usart1:: cr3:: HDSEL_W < Self > ;
143- fn dmar ( w : & mut W < Self > ) -> usart1:: cr3:: DMAR_W < Self > ;
144- fn dmat ( w : & mut W < Self > ) -> usart1:: cr3:: DMAT_W < Self > ;
145- fn onebit ( w : & mut W < Self > ) -> usart1:: cr3:: ONEBIT_W < Self > ;
139+ fn eie ( w : & mut W < Self > ) -> usart1:: cr3:: EIE_W < ' _ , Self > ;
140+ fn iren ( w : & mut W < Self > ) -> usart1:: cr3:: IREN_W < ' _ , Self > ;
141+ fn irlp ( w : & mut W < Self > ) -> usart1:: cr3:: IRLP_W < ' _ , Self > ;
142+ fn hdsel ( w : & mut W < Self > ) -> usart1:: cr3:: HDSEL_W < ' _ , Self > ;
143+ fn dmar ( w : & mut W < Self > ) -> usart1:: cr3:: DMAR_W < ' _ , Self > ;
144+ fn dmat ( w : & mut W < Self > ) -> usart1:: cr3:: DMAT_W < ' _ , Self > ;
145+ fn onebit ( w : & mut W < Self > ) -> usart1:: cr3:: ONEBIT_W < ' _ , Self > ;
146146 }
147147
148148 pub trait GtprR : RegisterSpec < Ux = u16 > + Readable + Sized {
@@ -187,9 +187,9 @@ macro_rules! impl_ext {
187187 }
188188 impl reg:: SrW for $uart:: sr:: SRrs {
189189 impl_write! {
190- rxne -> usart1:: sr:: RXNE_W <Self >;
191- tc -> usart1:: sr:: TC_W <Self >;
192- lbd -> usart1:: sr:: LBD_W <Self >;
190+ rxne -> usart1:: sr:: RXNE_W <' _ , Self >;
191+ tc -> usart1:: sr:: TC_W <' _ , Self >;
192+ lbd -> usart1:: sr:: LBD_W <' _ , Self >;
193193 }
194194 }
195195
@@ -203,10 +203,10 @@ macro_rules! impl_ext {
203203 }
204204 impl reg:: Cr2W for $uart:: cr2:: CR2rs {
205205 impl_write! {
206- add -> usart1:: cr2:: ADD_W <Self >;
207- lbdl -> usart1:: cr2:: LBDL_W <Self >;
208- lbdie -> usart1:: cr2:: LBDIE_W <Self >;
209- linen -> usart1:: cr2:: LINEN_W <Self >;
206+ add -> usart1:: cr2:: ADD_W <' _ , Self >;
207+ lbdl -> usart1:: cr2:: LBDL_W <' _ , Self >;
208+ lbdie -> usart1:: cr2:: LBDIE_W <' _ , Self >;
209+ linen -> usart1:: cr2:: LINEN_W <' _ , Self >;
210210 }
211211 }
212212
@@ -225,13 +225,13 @@ macro_rules! impl_ext {
225225 $( #[ $attr] ) *
226226 impl reg:: Cr3W for $uart:: cr3:: CR3rs {
227227 impl_write! {
228- eie -> usart1:: cr3:: EIE_W <Self >;
229- iren -> usart1:: cr3:: IREN_W <Self >;
230- irlp -> usart1:: cr3:: IRLP_W <Self >;
231- hdsel -> usart1:: cr3:: HDSEL_W <Self >;
232- dmar -> usart1:: cr3:: DMAR_W <Self >;
233- dmat -> usart1:: cr3:: DMAT_W <Self >;
234- onebit -> usart1:: cr3:: ONEBIT_W <Self >;
228+ eie -> usart1:: cr3:: EIE_W <' _ , Self >;
229+ iren -> usart1:: cr3:: IREN_W <' _ , Self >;
230+ irlp -> usart1:: cr3:: IRLP_W <' _ , Self >;
231+ hdsel -> usart1:: cr3:: HDSEL_W <' _ , Self >;
232+ dmar -> usart1:: cr3:: DMAR_W <' _ , Self >;
233+ dmat -> usart1:: cr3:: DMAT_W <' _ , Self >;
234+ onebit -> usart1:: cr3:: ONEBIT_W <' _ , Self >;
235235 }
236236 }
237237
@@ -242,7 +242,7 @@ macro_rules! impl_ext {
242242 }
243243 impl reg:: GtprW for $uart:: gtpr:: GTPRrs {
244244 impl_write! {
245- psc -> usart1:: gtpr:: PSC_W <Self >;
245+ psc -> usart1:: gtpr:: PSC_W <' _ , Self >;
246246 }
247247 }
248248 } ;
0 commit comments