Skip to content

Commit dfc92fa

Browse files
authored
Merge pull request #760 from stm32-rs/uart
enable uart for f413
2 parents bcd601e + 62960f7 commit dfc92fa

File tree

2 files changed

+1
-26
lines changed

2 files changed

+1
-26
lines changed

src/i2s.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,5 +541,5 @@ mod dma {
541541
}
542542
}
543543

544-
#[cfg(feature = "stm32_i2s_v12x")]
544+
#[cfg(feature = "i2s")]
545545
pub use dma::{DualI2sDmaTarget, DualI2sDmaTargetExt};

src/uart.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -60,34 +60,9 @@ macro_rules! halUart {
6060
}
6161

6262
#[cfg(feature = "uart4")]
63-
#[cfg(not(any(feature = "stm32f413", feature = "stm32f423")))]
6463
halUart! { pac::UART4, Serial4, Rx4, Tx4 }
6564
#[cfg(feature = "uart5")]
66-
#[cfg(not(any(feature = "stm32f413", feature = "stm32f423")))]
6765
halUart! { pac::UART5, Serial5, Rx5, Tx5 }
68-
69-
#[cfg(feature = "uart4")]
70-
#[cfg(any(feature = "stm32f413", feature = "stm32f423"))]
71-
impl Instance for pac::UART4 {
72-
type RegisterBlock = RegisterBlockUart;
73-
74-
fn ptr() -> *const RegisterBlockUart {
75-
pac::UART4::ptr() as *const _
76-
}
77-
78-
fn set_stopbits(&self, _bits: config::StopBits) {
79-
todo!()
80-
}
81-
82-
fn peri_address() -> u32 {
83-
unsafe { (*Self::ptr()).peri_address() }
84-
}
85-
}
86-
87-
#[cfg(feature = "uart5")]
88-
#[cfg(any(feature = "stm32f413", feature = "stm32f423"))]
89-
halUart! { pac::UART5, Serial5, Rx5, Tx5 }
90-
9166
#[cfg(feature = "uart7")]
9267
halUart! { pac::UART7, Serial7, Rx7, Tx7 }
9368
#[cfg(feature = "uart8")]

0 commit comments

Comments
 (0)