Skip to content

Commit 817a99d

Browse files
dtjones-atsemvertescher
authored andcommitted
Compile with additional chips
1 parent a14cc48 commit 817a99d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/serial.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ use crate::state;
1414
use crate::time::U32Ext;
1515
use nb::block;
1616

17-
#[cfg(any(feature = "stm32f745", feature = "stm32f746",))]
17+
#[cfg(any(feature = "device-selected",))]
1818
use crate::stm32::{RCC, USART1, USART2, UART4, USART3, USART6, UART7};
1919

20-
#[cfg(any(feature = "stm32f745", feature = "stm32f746",))]
20+
#[cfg(any(feature = "device-selected",))]
2121
use crate::gpio::{
2222
gpioa::{PA0, PA1, PA10, PA2, PA3, PA9},
2323
gpiob::{PB10, PB11, PB6, PB7},
@@ -58,7 +58,7 @@ where
5858
{
5959
}
6060

61-
#[cfg(any(feature = "stm32f745", feature = "stm32f746",))]
61+
#[cfg(any(feature = "device-selected",))]
6262
impl PinTx<USART1> for PA9<Alternate<AF7>> {}
6363
impl PinTx<USART1> for PB6<Alternate<AF7>> {}
6464
impl PinTx<USART2> for PA2<Alternate<AF7>> {}
@@ -73,7 +73,7 @@ impl PinTx<USART6> for PG14<Alternate<AF8>> {}
7373
impl PinTx<UART7> for PE8<Alternate<AF8>> {}
7474
impl PinTx<UART7> for PF7<Alternate<AF8>> {}
7575

76-
#[cfg(any(feature = "stm32f745", feature = "stm32f746",))]
76+
#[cfg(any(feature = "device-selected",))]
7777
impl PinRx<USART1> for PA10<Alternate<AF7>> {}
7878
impl PinRx<USART1> for PB7<Alternate<AF7>> {}
7979
impl PinRx<USART2> for PA3<Alternate<AF7>> {}

0 commit comments

Comments
 (0)