mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-10-01 14:20:44 +00:00
Use latest PAC which aligns TWAI field names (#2438)
This commit is contained in:
parent
25d8390d68
commit
6fa2823e10
@ -55,13 +55,13 @@ xtensa-lx = { version = "0.9.0", optional = true }
|
||||
# IMPORTANT:
|
||||
# Each supported device MUST have its PAC included below along with a
|
||||
# corresponding feature.
|
||||
esp32 = { version = "0.33.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "48fd400", features = ["critical-section", "rt"], optional = true }
|
||||
esp32c2 = { version = "0.22.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "48fd400", features = ["critical-section", "rt"], optional = true }
|
||||
esp32c3 = { version = "0.25.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "48fd400", features = ["critical-section", "rt"], optional = true }
|
||||
esp32c6 = { version = "0.16.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "48fd400", features = ["critical-section", "rt"], optional = true }
|
||||
esp32h2 = { version = "0.12.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "48fd400", features = ["critical-section", "rt"], optional = true }
|
||||
esp32s2 = { version = "0.24.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "48fd400", features = ["critical-section", "rt"], optional = true }
|
||||
esp32s3 = { version = "0.28.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "48fd400", features = ["critical-section", "rt"], optional = true }
|
||||
esp32 = { version = "0.33.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "390c88b", features = ["critical-section", "rt"], optional = true }
|
||||
esp32c2 = { version = "0.22.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "390c88b", features = ["critical-section", "rt"], optional = true }
|
||||
esp32c3 = { version = "0.25.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "390c88b", features = ["critical-section", "rt"], optional = true }
|
||||
esp32c6 = { version = "0.16.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "390c88b", features = ["critical-section", "rt"], optional = true }
|
||||
esp32h2 = { version = "0.12.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "390c88b", features = ["critical-section", "rt"], optional = true }
|
||||
esp32s2 = { version = "0.24.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "390c88b", features = ["critical-section", "rt"], optional = true }
|
||||
esp32s3 = { version = "0.28.0", git = "https://github.com/esp-rs/esp-pacs.git", rev = "390c88b", features = ["critical-section", "rt"], optional = true }
|
||||
|
||||
[target.'cfg(target_arch = "riscv32")'.dependencies]
|
||||
esp-riscv-rt = { version = "0.9.0", path = "../esp-riscv-rt" }
|
||||
|
@ -1947,18 +1947,14 @@ mod asynch {
|
||||
let status = register_block.status().read();
|
||||
|
||||
// Read error code direction (transmitting or receiving)
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(any(esp32, esp32c3, esp32s2, esp32s3))] {
|
||||
let ecc_direction = err_capture.ecc_direction().bit_is_set();
|
||||
} else {
|
||||
let ecc_direction = err_capture.err_capture_code_direction().bit_is_set();
|
||||
}
|
||||
}
|
||||
let ecc_direction = err_capture.ecc_direction().bit_is_set();
|
||||
|
||||
// If the error comes from Tx and Tx request is pending
|
||||
if !ecc_direction && !status.tx_buf_st().bit_is_set() {
|
||||
// Cancel a pending transmission request
|
||||
register_block.cmd().write(|w| w.abort_tx().set_bit());
|
||||
}
|
||||
|
||||
async_state.err_waker.wake();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user