Skip to content

Commit 368a0a7

Browse files
committed
Changes for rm0455 devices
1 parent dc87a91 commit 368a0a7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sai/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,11 @@ pub struct Sai<SAI, INTERFACE> {
184184
interface: INTERFACE,
185185
}
186186

187+
#[cfg(feature = "rm0455")]
188+
#[allow(clippy::upper_case_acronyms)]
189+
pub(crate) type SAI<const A: usize> = stm32h7::Periph<crate::stm32::sai1::RegisterBlock, A>;
190+
191+
#[cfg(not(feature = "rm0455"))]
187192
#[allow(clippy::upper_case_acronyms)]
188193
pub(crate) type SAI<const A: usize> = stm32h7::Periph<crate::stm32::sai4::RegisterBlock, A>;
189194

0 commit comments

Comments
 (0)