File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -118,9 +118,9 @@ impl Pins<USART3> for (PD8<Alternate<PushPull>>, PD9<Input<Floating>>) {
118
118
///
119
119
/// Note that reading / writing is done on the USART peripheral, not on the
120
120
/// rx / tx pins!
121
- trait UsartReadWrite < Word > {
122
- fn read ( ) -> nb:: Result < Word , Error > ;
123
- fn write ( byte : Word ) -> nb:: Result < ( ) , Infallible > ;
121
+ trait UsartReadWrite {
122
+ fn read ( ) -> nb:: Result < u8 , Error > ;
123
+ fn write ( byte : u8 ) -> nb:: Result < ( ) , Infallible > ;
124
124
fn flush ( ) -> nb:: Result < ( ) , Infallible > ;
125
125
}
126
126
@@ -357,7 +357,7 @@ macro_rules! hal {
357
357
}
358
358
}
359
359
360
- impl UsartReadWrite < u8 > for $USARTX {
360
+ impl UsartReadWrite for $USARTX {
361
361
fn read( ) -> nb:: Result <u8 , Error > {
362
362
// NOTE(unsafe) atomic read with no side effects
363
363
let sr = unsafe { ( * $USARTX:: ptr( ) ) . sr. read( ) } ;
You can’t perform that action at this time.
0 commit comments