Skip to content

Commit

Permalink
Implement RccPeriph for I2C4
Browse files Browse the repository at this point in the history
Signed-off-by: Akhil Velagapudi <[email protected]>
  • Loading branch information
akhilles authored and David-OConnor committed Oct 12, 2024
1 parent 7a010d4 commit a920d7b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a920d7b

Please sign in to comment.