Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
JurajSadel committed Nov 8, 2024
1 parent 87c4e8e commit cde74aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions esp-hal/src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,7 @@ impl PeripheralClockControl {
Peripheral::Rsa => {
peri_clk_en.modify(|r, w| unsafe { w.bits(r.bits() | (enable as u32) << 2) });
if enable {
peri_rst_en
.modify(|r, w| unsafe { w.bits(r.bits() & !(1 << 2)) });
peri_rst_en.modify(|r, w| unsafe { w.bits(r.bits() & !(1 << 2)) });
}
}
#[cfg(all(rsa, any(esp32c3, esp32s2, esp32s3)))]
Expand Down Expand Up @@ -884,7 +883,9 @@ impl PeripheralClockControl {
#[cfg(ecc)]
Peripheral::Ecc => {
system.ecc_conf().modify(|_, w| w.ecc_clk_en().bit(enable));
if enable { system.ecc_conf().modify(|_, w| w.ecc_rst_en().clear_bit()); }
if enable {
system.ecc_conf().modify(|_, w| w.ecc_rst_en().clear_bit());
}
}
#[cfg(soc_etm)]
Peripheral::Etm => {
Expand Down

0 comments on commit cde74aa

Please sign in to comment.