diff --git a/boards/feather_m0/Cargo.toml b/boards/feather_m0/Cargo.toml index 9037e68edde3..62c709cfd6ae 100644 --- a/boards/feather_m0/Cargo.toml +++ b/boards/feather_m0/Cargo.toml @@ -36,6 +36,7 @@ optional = true version = "0.2.1-git" optional = true git = "https://github.com/datdenkikniet/cortex-m-interrupt.git" +rev = "9baa936" [dev-dependencies] cortex-m-rtic = "1.1.3" @@ -152,7 +153,7 @@ required-features = ["dma"] [[example]] name = "async_dmac" -required-features = ["atsamd-hal/async", "atsamd-hal/rtic", "cortex-m-interrupt"] +required-features = ["dma", "atsamd-hal/async", "atsamd-hal/rtic", "cortex-m-interrupt"] [[example]] name = "async_timer" diff --git a/boards/feather_m0/examples/async_spi.rs b/boards/feather_m0/examples/async_spi.rs index 1fa398df55ff..cb7ec8a36c06 100644 --- a/boards/feather_m0/examples/async_spi.rs +++ b/boards/feather_m0/examples/async_spi.rs @@ -91,8 +91,7 @@ mod app { miso, ) .into_future(sercom4_irq) - .with_rx_dma_channel(channel0) - .with_tx_dma_channel(channel1); + .with_dma_channels(channel0, channel1); async_task::spawn().ok(); diff --git a/hal/Cargo.toml b/hal/Cargo.toml index 1648d9d50e8e..6ed425c2373b 100644 --- a/hal/Cargo.toml +++ b/hal/Cargo.toml @@ -52,8 +52,14 @@ void = {version = "1.0", default-features = false} # Optional depdendencies #=============================================================================== +cortex-m-interrupt = {version = "0.2.1-git", git = "https://github.com/datdenkikniet/cortex-m-interrupt.git", rev = "9baa936", optional = true} +defmt = { version = "0.3", optional = true} +embassy-sync = {version = "0.1", optional = true} +embedded-hal-alpha = {package = "embedded-hal", version = "1.0.0-alpha.9"} +embedded-hal-async = {version = "0.2.0-alpha.0", optional = true} embedded-sdmmc = {version = "0.3", optional = true} fugit = {version = "0.3", optional = true} +futures = {version = "0.3", default-features = false, features = ["async-await"], optional = true} jlink_rtt = {version = "0.2", optional = true} mcan-core = {version = "0.2", optional = true} rtic-monotonic = {version = "1.0", optional = true} @@ -91,37 +97,8 @@ atsame53n = {version = "0.12.0", path = "../pac/atsame53n", optional = true} atsame54n = {version = "0.12.0", path = "../pac/atsame54n", optional = true} atsame54p = {version = "0.12.0", path = "../pac/atsame54p", optional = true} -[dependencies.defmt] -version = "0.3" -optional = true -[dependencies.embedded-hal-async] -version = "0.2.0-alpha.0" -optional = true -[dependencies.embedded-hal-alpha] -package = "embedded-hal" -version = "1.0.0-alpha.9" - -[dependencies.critical-section] -version = "0.2.7" -optional = true - -[dependencies.embassy-sync] -version = "0.1" -optional = true -git = "https://github.com/embassy-rs/embassy.git" - -[dependencies.futures] -version = "0.3" -default-features = false -features = ["async-await"] -optional = true - -[dependencies.cortex-m-interrupt] -version = "0.2.1-git" -git = "https://github.com/jbeaurivage/cortex-m-interrupt.git" -optional = true #=============================================================================== # Features @@ -219,7 +196,6 @@ usb = ["usb-device"] use_rtt = ["jlink_rtt"] async = [ "cortex-m-interrupt", - "critical-section", "unproven", "embassy-sync", "futures",