@@ -36,9 +36,9 @@ wrap_r! {
36
36
}
37
37
wrap_w ! {
38
38
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 >;
42
42
}
43
43
}
44
44
@@ -52,10 +52,10 @@ wrap_r! {
52
52
}
53
53
wrap_w ! {
54
54
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 >;
59
59
}
60
60
}
61
61
@@ -72,13 +72,13 @@ wrap_r! {
72
72
}
73
73
wrap_w ! {
74
74
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 >;
82
82
}
83
83
}
84
84
@@ -89,7 +89,7 @@ wrap_r! {
89
89
}
90
90
wrap_w ! {
91
91
pub trait GtprW {
92
- fn psc( & mut self ) -> usart1:: gtpr:: PSC_W <REG >;
92
+ fn psc( & mut self ) -> usart1:: gtpr:: PSC_W <' _ , REG >;
93
93
}
94
94
}
95
95
@@ -108,9 +108,9 @@ mod reg {
108
108
fn lbd ( r : & R < Self > ) -> usart1:: sr:: LBD_R ;
109
109
}
110
110
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 > ;
114
114
}
115
115
116
116
pub trait Cr2R : RegisterSpec < Ux = u16 > + Readable + Sized {
@@ -120,10 +120,10 @@ mod reg {
120
120
fn linen ( r : & R < Self > ) -> usart1:: cr2:: LINEN_R ;
121
121
}
122
122
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 > ;
127
127
}
128
128
129
129
pub trait Cr3R : RegisterSpec < Ux = u16 > + Readable + Sized {
@@ -136,13 +136,13 @@ mod reg {
136
136
fn onebit ( r : & R < Self > ) -> usart1:: cr3:: ONEBIT_R ;
137
137
}
138
138
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 > ;
146
146
}
147
147
148
148
pub trait GtprR : RegisterSpec < Ux = u16 > + Readable + Sized {
@@ -187,9 +187,9 @@ macro_rules! impl_ext {
187
187
}
188
188
impl reg:: SrW for $uart:: sr:: SRrs {
189
189
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 >;
193
193
}
194
194
}
195
195
@@ -203,10 +203,10 @@ macro_rules! impl_ext {
203
203
}
204
204
impl reg:: Cr2W for $uart:: cr2:: CR2rs {
205
205
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 >;
210
210
}
211
211
}
212
212
@@ -225,13 +225,13 @@ macro_rules! impl_ext {
225
225
$( #[ $attr] ) *
226
226
impl reg:: Cr3W for $uart:: cr3:: CR3rs {
227
227
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 >;
235
235
}
236
236
}
237
237
@@ -242,7 +242,7 @@ macro_rules! impl_ext {
242
242
}
243
243
impl reg:: GtprW for $uart:: gtpr:: GTPRrs {
244
244
impl_write! {
245
- psc -> usart1:: gtpr:: PSC_W <Self >;
245
+ psc -> usart1:: gtpr:: PSC_W <' _ , Self >;
246
246
}
247
247
}
248
248
} ;
0 commit comments