From bdc8832e30b1c487497a05dd2b8b0f071866fe41 Mon Sep 17 00:00:00 2001 From: Akhil Velagapudi <4@4khil.com> Date: Thu, 10 Oct 2024 14:15:15 -0700 Subject: [PATCH] Implement RccPeriph for I2C4 Signed-off-by: Akhil Velagapudi <4@4khil.com> --- src/util.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/util.rs b/src/util.rs index 18c0458..86dd05f 100644 --- a/src/util.rs +++ b/src/util.rs @@ -416,6 +416,13 @@ impl RccPeriph for pac::I2C3 { } } +#[cfg(feature = "h7")] +impl RccPeriph for pac::I2C4 { + fn en_reset(rcc: &RegisterBlock) { + rcc_en_reset!(apb4, i2c4, rcc); + } +} + #[cfg(not(feature = "f301"))] // todo: Not sure what's going on here. impl RccPeriph for pac::SPI1 { fn en_reset(rcc: &RegisterBlock) {