Skip to content

Commit 2af033b

Browse files
committed
SerialFlowControl trait
1 parent 2061acc commit 2af033b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/gpio/alt.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,10 @@ pub trait SerialSync {
335335
type Ck;
336336
}
337337
/// Hardware flow control (RS232)
338-
pub trait SerialRs232 {
339-
/// Receive
338+
pub trait SerialFlowControl {
339+
/// "Clear To Send" blocks the data transmission at the end of the current transfer when high
340340
type Cts;
341-
/// Transmit
341+
/// "Request to send" indicates that the USART is ready to receive a data (when low)
342342
type Rts;
343343
}
344344

src/gpio/alt/f4.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4047,7 +4047,7 @@ pub mod usart1 {
40474047
impl SerialSync for USART {
40484048
type Ck = Ck;
40494049
}
4050-
impl SerialRs232 for USART {
4050+
impl SerialFlowControl for USART {
40514051
type Cts = Cts;
40524052
type Rts = Rts;
40534053
}
@@ -4103,7 +4103,7 @@ pub mod usart2 {
41034103
impl SerialSync for USART {
41044104
type Ck = Ck;
41054105
}
4106-
impl SerialRs232 for USART {
4106+
impl SerialFlowControl for USART {
41074107
type Cts = Cts;
41084108
type Rts = Rts;
41094109
}
@@ -4182,7 +4182,7 @@ pub mod usart3 {
41824182
impl SerialSync for USART {
41834183
type Ck = Ck;
41844184
}
4185-
impl SerialRs232 for USART {
4185+
impl SerialFlowControl for USART {
41864186
type Cts = Cts;
41874187
type Rts = Rts;
41884188
}
@@ -4293,7 +4293,7 @@ pub mod usart6 {
42934293
feature = "gpio-f446",
42944294
feature = "gpio-f469"
42954295
))]
4296-
impl SerialRs232 for USART {
4296+
impl SerialFlowControl for USART {
42974297
type Cts = Cts;
42984298
type Rts = Rts;
42994299
}
@@ -4355,7 +4355,7 @@ pub mod uart4 {
43554355
type Tx<Otype> = Tx<Otype>;
43564356
}
43574357
#[cfg(feature = "gpio-f446")]
4358-
impl SerialRs232 for UART {
4358+
impl SerialFlowControl for UART {
43594359
type Cts = Cts;
43604360
type Rts = Rts;
43614361
}
@@ -4416,7 +4416,7 @@ pub mod uart5 {
44164416
type Tx<Otype> = Tx<Otype>;
44174417
}
44184418
#[cfg(feature = "gpio-f446")]
4419-
impl SerialRs232 for UART {
4419+
impl SerialFlowControl for UART {
44204420
type Cts = Cts;
44214421
type Rts = Rts;
44224422
}

0 commit comments

Comments
 (0)