Skip to content

Commit d389ec0

Browse files
authored
Added less used USART3 config for l4x5 and l4x6 (#150)
* Added serial setup * fmt * comma
1 parent b954de7 commit d389ec0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/serial.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ use crate::gpio::gpiob::PB5;
7676
#[cfg(any(feature = "stm32l4x5", feature = "stm32l4x6",))]
7777
use crate::gpio::gpioc::PC12;
7878

79+
#[cfg(any(feature = "stm32l4x5", feature = "stm32l4x6",))]
80+
use crate::gpio::gpiod::{PD8, PD9};
81+
7982
#[cfg(any(feature = "stm32l4x5", feature = "stm32l4x6",))]
8083
use crate::gpio::AF8;
8184

@@ -436,6 +439,11 @@ pins! {
436439
USART3: (PC10, PC11, PD12, AF7),
437440
}
438441

442+
#[cfg(any(feature = "stm32l4x5", feature = "stm32l4x6",))]
443+
pins! {
444+
USART3: (PD8, PD9, PB1, PA6, AF7),
445+
}
446+
439447
// UART 4
440448
#[cfg(any(feature = "stm32l4x5", feature = "stm32l4x6",))]
441449
pins! {

0 commit comments

Comments
 (0)