Skip to content

Commit

Permalink
Use the latest PACs
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebraham committed Jan 4, 2023
1 parent ba43157 commit fe6ea53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions esp-hal-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ ufmt-write = { version = "0.1.0", optional = true }
# Each supported device MUST have its PAC included below along with a
# corresponding feature. We rename the PAC packages because we cannot
# have dependencies and features with the same names.
esp32 = { version = "0.17.0", features = ["critical-section"], optional = true }
esp32 = { version = "0.18.0", features = ["critical-section"], optional = true }
esp32c2 = { version = "0.5.1", features = ["critical-section"], optional = true }
esp32c3 = { version = "0.8.1", features = ["critical-section"], optional = true }
esp32s2 = { version = "0.7.0", features = ["critical-section"], optional = true }
esp32s3 = { version = "0.11.0", features = ["critical-section"], optional = true }
esp32c3 = { version = "0.9.0", features = ["critical-section"], optional = true }
esp32s2 = { version = "0.8.0", features = ["critical-section"], optional = true }
esp32s3 = { version = "0.12.0", features = ["critical-section"], optional = true }

[features]
esp32 = ["esp32/rt" , "xtensa", "xtensa-lx/esp32", "xtensa-lx-rt/esp32", "lock_api"]
Expand Down
4 changes: 2 additions & 2 deletions esp-hal-common/src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ impl PeripheralClockControl {
}
#[cfg(any(esp32s3, esp32c3))]
Peripheral::Twai => {
perip_clk_en0.modify(|_, w| w.can_clk_en().set_bit());
perip_rst_en0.modify(|_, w| w.can_rst().clear_bit());
perip_clk_en0.modify(|_, w| w.twai_clk_en().set_bit());
perip_rst_en0.modify(|_, w| w.twai_rst().clear_bit());
}
}
}
Expand Down

0 comments on commit fe6ea53

Please sign in to comment.