File tree Expand file tree Collapse file tree 3 files changed +330
-453
lines changed Expand file tree Collapse file tree 3 files changed +330
-453
lines changed Original file line number Diff line number Diff line change @@ -271,6 +271,9 @@ pub trait SerialAsync {
271
271
pub trait SerialSync {
272
272
type Ck ;
273
273
}
274
+ pub trait SerialRs485 {
275
+ type De ;
276
+ }
274
277
/// Hardware flow control (RS232)
275
278
pub trait SerialRs232 {
276
279
/// Receive
Original file line number Diff line number Diff line change @@ -710,6 +710,9 @@ pub mod usart1 {
710
710
type Rx < Otype > = Rx < Otype > ;
711
711
type Tx < Otype > = Tx < Otype > ;
712
712
}
713
+ impl SerialRs485 for USART {
714
+ type De = De ;
715
+ }
713
716
impl SerialSync for USART {
714
717
type Ck = Ck ;
715
718
}
@@ -805,6 +808,9 @@ pub mod usart2 {
805
808
type Rx < Otype > = Rx < Otype > ;
806
809
type Tx < Otype > = Tx < Otype > ;
807
810
}
811
+ impl SerialRs485 for USART {
812
+ type De = De ;
813
+ }
808
814
impl SerialSync for USART {
809
815
type Ck = Ck ;
810
816
}
You can’t perform that action at this time.
0 commit comments