diff options
| author | Lucas Martins <[email protected]> | 2024-10-21 17:50:05 -0300 |
|---|---|---|
| committer | Lucas Martins <[email protected]> | 2024-10-21 17:50:05 -0300 |
| commit | 82772e3a8f36b31052ca46af3947ba253458bef1 (patch) | |
| tree | 58dbdc9e57ff124e5dd1173af1ef5f257f74037b | |
| parent | 2c9b528edde491ca1ed02234805212c78e2a6bd7 (diff) | |
:memo: fix wrong comment
| -rw-r--r-- | embassy-stm32/src/usart/buffered.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/usart/buffered.rs b/embassy-stm32/src/usart/buffered.rs index edaf41be9..7ba209063 100644 --- a/embassy-stm32/src/usart/buffered.rs +++ b/embassy-stm32/src/usart/buffered.rs | |||
| @@ -246,7 +246,7 @@ impl<'d> BufferedUart<'d> { | |||
| 246 | ) | 246 | ) |
| 247 | } | 247 | } |
| 248 | 248 | ||
| 249 | /// Create a new bidirectional buffered UART driver with only RTS pin as the DE pin | 249 | /// Create a new bidirectional buffered UART driver with only the RTS pin as the DE pin |
| 250 | pub fn new_with_rts_as_de<T: Instance>( | 250 | pub fn new_with_rts_as_de<T: Instance>( |
| 251 | peri: impl Peripheral<P = T> + 'd, | 251 | peri: impl Peripheral<P = T> + 'd, |
| 252 | _irq: impl interrupt::typelevel::Binding<T::Interrupt, InterruptHandler<T>> + 'd, | 252 | _irq: impl interrupt::typelevel::Binding<T::Interrupt, InterruptHandler<T>> + 'd, |
| @@ -286,7 +286,7 @@ impl<'d> BufferedUart<'d> { | |||
| 286 | new_pin!(rx, AfType::input(Pull::None)), | 286 | new_pin!(rx, AfType::input(Pull::None)), |
| 287 | new_pin!(tx, AfType::output(OutputType::PushPull, Speed::Medium)), | 287 | new_pin!(tx, AfType::output(OutputType::PushPull, Speed::Medium)), |
| 288 | new_pin!(rts, AfType::input(Pull::None)), | 288 | new_pin!(rts, AfType::input(Pull::None)), |
| 289 | None, // no RTS | 289 | None, // no CTS |
| 290 | None, // no DE | 290 | None, // no DE |
| 291 | tx_buffer, | 291 | tx_buffer, |
| 292 | rx_buffer, | 292 | rx_buffer, |
