diff options
| author | Dániel Buga <[email protected]> | 2024-12-20 12:45:24 +0100 |
|---|---|---|
| committer | Dániel Buga <[email protected]> | 2024-12-22 21:00:23 +0100 |
| commit | ab8ca3f126447edb3a9eb06aa6fd6cd394219c17 (patch) | |
| tree | 129bff555ec2fee297a932243de03151ec38712c | |
| parent | 1c485f18a2ee6147bf4cfd66789dc8e0c6e1466c (diff) | |
Rename ETQD, bump date
28 files changed, 49 insertions, 61 deletions
diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh index 47babe8f5..c92892406 100755 --- a/.github/ci/doc.sh +++ b/.github/ci/doc.sh | |||
| @@ -32,7 +32,7 @@ docserver-builder -i ./embassy-stm32-wpan -o webroot/crates/embassy-stm32-wpan/g | |||
| 32 | 32 | ||
| 33 | docserver-builder -i ./embassy-time -o webroot/crates/embassy-time/git.zup | 33 | docserver-builder -i ./embassy-time -o webroot/crates/embassy-time/git.zup |
| 34 | docserver-builder -i ./embassy-time-driver -o webroot/crates/embassy-time-driver/git.zup | 34 | docserver-builder -i ./embassy-time-driver -o webroot/crates/embassy-time-driver/git.zup |
| 35 | docserver-builder -i ./embassy-time-queue-driver -o webroot/crates/embassy-time-queue-driver/git.zup | 35 | docserver-builder -i ./embassy-time-queue-utils -o webroot/crates/embassy-time-queue-utils/git.zup |
| 36 | 36 | ||
| 37 | docserver-builder -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup | 37 | docserver-builder -i ./embassy-usb -o webroot/crates/embassy-usb/git.zup |
| 38 | docserver-builder -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup | 38 | docserver-builder -i ./embassy-usb-dfu -o webroot/crates/embassy-usb-dfu/git.zup |
diff --git a/.github/ci/test.sh b/.github/ci/test.sh index 0fd6820d2..c78865e54 100755 --- a/.github/ci/test.sh +++ b/.github/ci/test.sh | |||
| @@ -17,7 +17,7 @@ cargo test --manifest-path ./embassy-futures/Cargo.toml | |||
| 17 | cargo test --manifest-path ./embassy-sync/Cargo.toml | 17 | cargo test --manifest-path ./embassy-sync/Cargo.toml |
| 18 | cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml | 18 | cargo test --manifest-path ./embassy-embedded-hal/Cargo.toml |
| 19 | cargo test --manifest-path ./embassy-hal-internal/Cargo.toml | 19 | cargo test --manifest-path ./embassy-hal-internal/Cargo.toml |
| 20 | cargo test --manifest-path ./embassy-time/Cargo.toml --features mock-driver,embassy-time-queue-driver/generic-queue-8 | 20 | cargo test --manifest-path ./embassy-time/Cargo.toml --features mock-driver,embassy-time-queue-utils/generic-queue-8 |
| 21 | cargo test --manifest-path ./embassy-time-driver/Cargo.toml | 21 | cargo test --manifest-path ./embassy-time-driver/Cargo.toml |
| 22 | 22 | ||
| 23 | cargo test --manifest-path ./embassy-boot/Cargo.toml | 23 | cargo test --manifest-path ./embassy-boot/Cargo.toml |
diff --git a/ci-xtensa.sh b/ci-xtensa.sh index 056e85d48..6c9807e98 100755 --- a/ci-xtensa.sh +++ b/ci-xtensa.sh | |||
| @@ -22,8 +22,8 @@ cargo batch \ | |||
| 22 | --- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32-none-elf --features arch-spin,executor-thread \ | 22 | --- build --release --manifest-path embassy-executor/Cargo.toml --target xtensa-esp32-none-elf --features arch-spin,executor-thread \ |
| 23 | --- build --release --manifest-path embassy-sync/Cargo.toml --target xtensa-esp32s2-none-elf --features defmt \ | 23 | --- build --release --manifest-path embassy-sync/Cargo.toml --target xtensa-esp32s2-none-elf --features defmt \ |
| 24 | --- build --release --manifest-path embassy-time/Cargo.toml --target xtensa-esp32s2-none-elf --features defmt,defmt-timestamp-uptime,mock-driver \ | 24 | --- build --release --manifest-path embassy-time/Cargo.toml --target xtensa-esp32s2-none-elf --features defmt,defmt-timestamp-uptime,mock-driver \ |
| 25 | --- build --release --manifest-path embassy-time-queue-driver/Cargo.toml --target xtensa-esp32s2-none-elf \ | 25 | --- build --release --manifest-path embassy-time-queue-utils/Cargo.toml --target xtensa-esp32s2-none-elf \ |
| 26 | --- build --release --manifest-path embassy-time-queue-driver/Cargo.toml --target xtensa-esp32s2-none-elf --features generic-queue-8 \ | 26 | --- build --release --manifest-path embassy-time-queue-utils/Cargo.toml --target xtensa-esp32s2-none-elf --features generic-queue-8 \ |
| 27 | --- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv4,medium-ethernet,packet-trace \ | 27 | --- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv4,medium-ethernet,packet-trace \ |
| 28 | --- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv4,multicast,medium-ethernet \ | 28 | --- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,proto-ipv4,multicast,medium-ethernet \ |
| 29 | --- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,dhcpv4,medium-ethernet \ | 29 | --- build --release --manifest-path embassy-net/Cargo.toml --target xtensa-esp32-none-elf --features defmt,tcp,udp,dns,dhcpv4,medium-ethernet \ |
| @@ -39,8 +39,8 @@ cargo batch \ | |||
| 39 | --- build --release --manifest-path embassy-executor/Cargo.toml --target riscv32imac-unknown-none-elf --features arch-riscv32,executor-thread \ | 39 | --- build --release --manifest-path embassy-executor/Cargo.toml --target riscv32imac-unknown-none-elf --features arch-riscv32,executor-thread \ |
| 40 | --- build --release --manifest-path embassy-sync/Cargo.toml --target thumbv6m-none-eabi --features defmt \ | 40 | --- build --release --manifest-path embassy-sync/Cargo.toml --target thumbv6m-none-eabi --features defmt \ |
| 41 | --- build --release --manifest-path embassy-time/Cargo.toml --target thumbv6m-none-eabi --features defmt,defmt-timestamp-uptime,mock-driver \ | 41 | --- build --release --manifest-path embassy-time/Cargo.toml --target thumbv6m-none-eabi --features defmt,defmt-timestamp-uptime,mock-driver \ |
| 42 | --- build --release --manifest-path embassy-time-queue-driver/Cargo.toml --target thumbv6m-none-eabi \ | 42 | --- build --release --manifest-path embassy-time-queue-utils/Cargo.toml --target thumbv6m-none-eabi \ |
| 43 | --- build --release --manifest-path embassy-time-queue-driver/Cargo.toml --target thumbv6m-none-eabi --features generic-queue-8 \ | 43 | --- build --release --manifest-path embassy-time-queue-utils/Cargo.toml --target thumbv6m-none-eabi --features generic-queue-8 \ |
| 44 | --- build --release --manifest-path embassy-net/Cargo.toml --target thumbv7em-none-eabi --features defmt,tcp,udp,dns,proto-ipv4,medium-ethernet,packet-trace \ | 44 | --- build --release --manifest-path embassy-net/Cargo.toml --target thumbv7em-none-eabi --features defmt,tcp,udp,dns,proto-ipv4,medium-ethernet,packet-trace \ |
| 45 | --- build --release --manifest-path embassy-net/Cargo.toml --target thumbv7em-none-eabi --features defmt,tcp,udp,dns,proto-ipv4,multicast,medium-ethernet \ | 45 | --- build --release --manifest-path embassy-net/Cargo.toml --target thumbv7em-none-eabi --features defmt,tcp,udp,dns,proto-ipv4,multicast,medium-ethernet \ |
| 46 | --- build --release --manifest-path embassy-net/Cargo.toml --target thumbv7em-none-eabi --features defmt,tcp,udp,dns,dhcpv4,medium-ethernet \ | 46 | --- build --release --manifest-path embassy-net/Cargo.toml --target thumbv7em-none-eabi --features defmt,tcp,udp,dns,dhcpv4,medium-ethernet \ |
diff --git a/docs/pages/faq.adoc b/docs/pages/faq.adoc index 3e32563cc..ed88515d0 100644 --- a/docs/pages/faq.adoc +++ b/docs/pages/faq.adoc | |||
| @@ -140,9 +140,9 @@ Example: | |||
| 140 | [source,toml] | 140 | [source,toml] |
| 141 | ---- | 141 | ---- |
| 142 | [patch.crates-io] | 142 | [patch.crates-io] |
| 143 | embassy-time-queue-driver = { git = "https://github.com/embassy-rs/embassy.git", rev = "e5fdd35" } | 143 | embassy-time-queue-utils = { git = "https://github.com/embassy-rs/embassy.git", rev = "7f8af8a" } |
| 144 | embassy-time-driver = { git = "https://github.com/embassy-rs/embassy.git", rev = "e5fdd35" } | 144 | embassy-time-driver = { git = "https://github.com/embassy-rs/embassy.git", rev = "7f8af8a" } |
| 145 | # embassy-time = { git = "https://github.com/embassy-rs/embassy.git", rev = "e5fdd35" } | 145 | # embassy-time = { git = "https://github.com/embassy-rs/embassy.git", rev = "7f8af8a" } |
| 146 | ---- | 146 | ---- |
| 147 | 147 | ||
| 148 | Note that the git revision should match any other embassy patches or git dependencies that you are using! | 148 | Note that the git revision should match any other embassy patches or git dependencies that you are using! |
diff --git a/embassy-executor/CHANGELOG.md b/embassy-executor/CHANGELOG.md index b45142802..ee8003a54 100644 --- a/embassy-executor/CHANGELOG.md +++ b/embassy-executor/CHANGELOG.md | |||
| @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. | |||
| 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 | 7 | ||
| 8 | ## 0.7.0 - 2024-12-18 | 8 | ## 0.7.0 - 2024-12-22 |
| 9 | 9 | ||
| 10 | - embassy-executor no longer provides an `embassy-time-queue-driver` implementation | 10 | - embassy-executor no longer provides an `embassy-time-queue-driver` implementation |
| 11 | - Added `TaskRef::executor` to obtain a reference to a task's executor | 11 | - Added `TaskRef::executor` to obtain a reference to a task's executor |
diff --git a/embassy-nrf/Cargo.toml b/embassy-nrf/Cargo.toml index a1248c1ca..45666ade8 100644 --- a/embassy-nrf/Cargo.toml +++ b/embassy-nrf/Cargo.toml | |||
| @@ -119,7 +119,7 @@ _nrf52 = ["_ppi"] | |||
| 119 | _nrf51 = ["_ppi"] | 119 | _nrf51 = ["_ppi"] |
| 120 | _nrf91 = [] | 120 | _nrf91 = [] |
| 121 | 121 | ||
| 122 | _time-driver = ["dep:embassy-time-driver", "embassy-time-driver?/tick-hz-32_768", "dep:embassy-time-queue-driver"] | 122 | _time-driver = ["dep:embassy-time-driver", "embassy-time-driver?/tick-hz-32_768", "dep:embassy-time-queue-utils"] |
| 123 | 123 | ||
| 124 | # trustzone state. | 124 | # trustzone state. |
| 125 | _s = [] | 125 | _s = [] |
| @@ -135,7 +135,7 @@ _nrf52832_anomaly_109 = [] | |||
| 135 | 135 | ||
| 136 | [dependencies] | 136 | [dependencies] |
| 137 | embassy-time-driver = { version = "0.2", path = "../embassy-time-driver", optional = true } | 137 | embassy-time-driver = { version = "0.2", path = "../embassy-time-driver", optional = true } |
| 138 | embassy-time-queue-driver = { version = "0.2", path = "../embassy-time-queue-driver", optional = true } | 138 | embassy-time-queue-utils = { version = "0.1", path = "../embassy-time-queue-utils", optional = true } |
| 139 | embassy-time = { version = "0.4.0", path = "../embassy-time", optional = true } | 139 | embassy-time = { version = "0.4.0", path = "../embassy-time", optional = true } |
| 140 | embassy-sync = { version = "0.6.1", path = "../embassy-sync" } | 140 | embassy-sync = { version = "0.6.1", path = "../embassy-sync" } |
| 141 | embassy-hal-internal = {version = "0.2.0", path = "../embassy-hal-internal", features = ["cortex-m", "prio-bits-3"] } | 141 | embassy-hal-internal = {version = "0.2.0", path = "../embassy-hal-internal", features = ["cortex-m", "prio-bits-3"] } |
diff --git a/embassy-nrf/src/time_driver.rs b/embassy-nrf/src/time_driver.rs index a27fae9a8..ade6fd2a1 100644 --- a/embassy-nrf/src/time_driver.rs +++ b/embassy-nrf/src/time_driver.rs | |||
| @@ -5,7 +5,7 @@ use critical_section::CriticalSection; | |||
| 5 | use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex; | 5 | use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex; |
| 6 | use embassy_sync::blocking_mutex::CriticalSectionMutex as Mutex; | 6 | use embassy_sync::blocking_mutex::CriticalSectionMutex as Mutex; |
| 7 | use embassy_time_driver::Driver; | 7 | use embassy_time_driver::Driver; |
| 8 | use embassy_time_queue_driver::Queue; | 8 | use embassy_time_queue_utils::Queue; |
| 9 | 9 | ||
| 10 | use crate::interrupt::InterruptExt; | 10 | use crate::interrupt::InterruptExt; |
| 11 | use crate::{interrupt, pac}; | 11 | use crate::{interrupt, pac}; |
diff --git a/embassy-rp/Cargo.toml b/embassy-rp/Cargo.toml index 5e2e08f38..37d9d916f 100644 --- a/embassy-rp/Cargo.toml +++ b/embassy-rp/Cargo.toml | |||
| @@ -40,7 +40,7 @@ critical-section-impl = ["critical-section/restore-state-u8"] | |||
| 40 | unstable-pac = [] | 40 | unstable-pac = [] |
| 41 | 41 | ||
| 42 | ## Enable the timer for use with `embassy-time` with a 1MHz tick rate. | 42 | ## Enable the timer for use with `embassy-time` with a 1MHz tick rate. |
| 43 | time-driver = ["dep:embassy-time-driver", "embassy-time-driver?/tick-hz-1_000_000", "dep:embassy-time-queue-driver"] | 43 | time-driver = ["dep:embassy-time-driver", "embassy-time-driver?/tick-hz-1_000_000", "dep:embassy-time-queue-utils"] |
| 44 | 44 | ||
| 45 | ## Enable ROM function cache. This will store the address of a ROM function when first used, improving performance of subsequent calls. | 45 | ## Enable ROM function cache. This will store the address of a ROM function when first used, improving performance of subsequent calls. |
| 46 | rom-func-cache = [] | 46 | rom-func-cache = [] |
| @@ -110,7 +110,7 @@ binary-info = ["rt", "dep:rp-binary-info", "rp-binary-info?/binary-info"] | |||
| 110 | [dependencies] | 110 | [dependencies] |
| 111 | embassy-sync = { version = "0.6.1", path = "../embassy-sync" } | 111 | embassy-sync = { version = "0.6.1", path = "../embassy-sync" } |
| 112 | embassy-time-driver = { version = "0.2", path = "../embassy-time-driver", optional = true } | 112 | embassy-time-driver = { version = "0.2", path = "../embassy-time-driver", optional = true } |
| 113 | embassy-time-queue-driver = { version = "0.2", path = "../embassy-time-queue-driver", optional = true } | 113 | embassy-time-queue-utils = { version = "0.1", path = "../embassy-time-queue-utils", optional = true } |
| 114 | embassy-time = { version = "0.4.0", path = "../embassy-time" } | 114 | embassy-time = { version = "0.4.0", path = "../embassy-time" } |
| 115 | embassy-futures = { version = "0.1.0", path = "../embassy-futures" } | 115 | embassy-futures = { version = "0.1.0", path = "../embassy-futures" } |
| 116 | embassy-hal-internal = {version = "0.2.0", path = "../embassy-hal-internal", features = ["cortex-m", "prio-bits-2"] } | 116 | embassy-hal-internal = {version = "0.2.0", path = "../embassy-hal-internal", features = ["cortex-m", "prio-bits-2"] } |
diff --git a/embassy-rp/src/time_driver.rs b/embassy-rp/src/time_driver.rs index a0eaec10e..aa5d564e7 100644 --- a/embassy-rp/src/time_driver.rs +++ b/embassy-rp/src/time_driver.rs | |||
| @@ -5,7 +5,7 @@ use critical_section::CriticalSection; | |||
| 5 | use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex; | 5 | use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex; |
| 6 | use embassy_sync::blocking_mutex::Mutex; | 6 | use embassy_sync::blocking_mutex::Mutex; |
| 7 | use embassy_time_driver::Driver; | 7 | use embassy_time_driver::Driver; |
| 8 | use embassy_time_queue_driver::Queue; | 8 | use embassy_time_queue_utils::Queue; |
| 9 | #[cfg(feature = "rp2040")] | 9 | #[cfg(feature = "rp2040")] |
| 10 | use pac::TIMER; | 10 | use pac::TIMER; |
| 11 | #[cfg(feature = "_rp235x")] | 11 | #[cfg(feature = "_rp235x")] |
diff --git a/embassy-stm32/Cargo.toml b/embassy-stm32/Cargo.toml index 527d2dd30..ffd9a67e7 100644 --- a/embassy-stm32/Cargo.toml +++ b/embassy-stm32/Cargo.toml | |||
| @@ -45,7 +45,7 @@ rustdoc-args = ["--cfg", "docsrs"] | |||
| 45 | embassy-sync = { version = "0.6.1", path = "../embassy-sync" } | 45 | embassy-sync = { version = "0.6.1", path = "../embassy-sync" } |
| 46 | embassy-time = { version = "0.4.0", path = "../embassy-time", optional = true } | 46 | embassy-time = { version = "0.4.0", path = "../embassy-time", optional = true } |
| 47 | embassy-time-driver = { version = "0.2", path = "../embassy-time-driver", optional = true } | 47 | embassy-time-driver = { version = "0.2", path = "../embassy-time-driver", optional = true } |
| 48 | embassy-time-queue-driver = { version = "0.2", path = "../embassy-time-queue-driver", optional = true } | 48 | embassy-time-queue-utils = { version = "0.1", path = "../embassy-time-queue-utils", optional = true } |
| 49 | embassy-futures = { version = "0.1.0", path = "../embassy-futures" } | 49 | embassy-futures = { version = "0.1.0", path = "../embassy-futures" } |
| 50 | embassy-hal-internal = {version = "0.2.0", path = "../embassy-hal-internal", features = ["cortex-m", "prio-bits-4"] } | 50 | embassy-hal-internal = {version = "0.2.0", path = "../embassy-hal-internal", features = ["cortex-m", "prio-bits-4"] } |
| 51 | embassy-embedded-hal = {version = "0.2.0", path = "../embassy-embedded-hal", default-features = false } | 51 | embassy-embedded-hal = {version = "0.2.0", path = "../embassy-embedded-hal", default-features = false } |
| @@ -150,7 +150,7 @@ time = ["dep:embassy-time", "embassy-embedded-hal/time"] | |||
| 150 | 150 | ||
| 151 | # Features starting with `_` are for internal use only. They're not intended | 151 | # Features starting with `_` are for internal use only. They're not intended |
| 152 | # to be enabled by other crates, and are not covered by semver guarantees. | 152 | # to be enabled by other crates, and are not covered by semver guarantees. |
| 153 | _time-driver = ["dep:embassy-time-driver", "time", "dep:embassy-time-queue-driver"] | 153 | _time-driver = ["dep:embassy-time-driver", "time", "dep:embassy-time-queue-utils"] |
| 154 | 154 | ||
| 155 | ## Use any time driver | 155 | ## Use any time driver |
| 156 | time-driver-any = ["_time-driver"] | 156 | time-driver-any = ["_time-driver"] |
diff --git a/embassy-stm32/src/time_driver.rs b/embassy-stm32/src/time_driver.rs index a4c333d82..fbe148359 100644 --- a/embassy-stm32/src/time_driver.rs +++ b/embassy-stm32/src/time_driver.rs | |||
| @@ -7,7 +7,7 @@ use critical_section::CriticalSection; | |||
| 7 | use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex; | 7 | use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex; |
| 8 | use embassy_sync::blocking_mutex::Mutex; | 8 | use embassy_sync::blocking_mutex::Mutex; |
| 9 | use embassy_time_driver::{Driver, TICK_HZ}; | 9 | use embassy_time_driver::{Driver, TICK_HZ}; |
| 10 | use embassy_time_queue_driver::Queue; | 10 | use embassy_time_queue_utils::Queue; |
| 11 | use stm32_metapac::timer::{regs, TimGp16}; | 11 | use stm32_metapac::timer::{regs, TimGp16}; |
| 12 | 12 | ||
| 13 | use crate::interrupt::typelevel::Interrupt; | 13 | use crate::interrupt::typelevel::Interrupt; |
diff --git a/embassy-time-driver/CHANGELOG.md b/embassy-time-driver/CHANGELOG.md index 7e9be8949..30d56fd56 100644 --- a/embassy-time-driver/CHANGELOG.md +++ b/embassy-time-driver/CHANGELOG.md | |||
| @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. | |||
| 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 | 7 | ||
| 8 | ## 0.2.0 - 2024-12-18 | 8 | ## 0.2.0 - 2024-12-22 |
| 9 | 9 | ||
| 10 | - The `allocate_alarm`, `set_alarm_callback`, `set_alarm` functions have been removed. | 10 | - The `allocate_alarm`, `set_alarm_callback`, `set_alarm` functions have been removed. |
| 11 | - `schedule_wake` has been added to the `Driver` trait. | 11 | - `schedule_wake` has been added to the `Driver` trait. |
diff --git a/embassy-time-driver/src/lib.rs b/embassy-time-driver/src/lib.rs index 9f2795a01..b77683a52 100644 --- a/embassy-time-driver/src/lib.rs +++ b/embassy-time-driver/src/lib.rs | |||
| @@ -53,7 +53,7 @@ | |||
| 53 | //! use core::cell::RefCell; | 53 | //! use core::cell::RefCell; |
| 54 | //! use core::task::Waker; | 54 | //! use core::task::Waker; |
| 55 | //! | 55 | //! |
| 56 | //! use embassy_time_queue_driver::Queue; | 56 | //! use embassy_time_queue_utils::Queue; |
| 57 | //! use embassy_time_driver::Driver; | 57 | //! use embassy_time_driver::Driver; |
| 58 | //! | 58 | //! |
| 59 | //! struct MyDriver { | 59 | //! struct MyDriver { |
diff --git a/embassy-time-queue-driver/README.md b/embassy-time-queue-driver/README.md deleted file mode 100644 index b9fb12d94..000000000 --- a/embassy-time-queue-driver/README.md +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | # embassy-time-queue-driver | ||
| 2 | |||
| 3 | This crate contains the driver trait used by the [`embassy-time`](https://crates.io/crates/embassy-time) timer queue. | ||
| 4 | |||
| 5 | You should rarely need to use this crate directly. Only use it when implementing your own timer queue. | ||
| 6 | |||
| 7 | There is two timer queue implementations, one in `embassy-time` enabled by the `generic-queue` feature, and | ||
| 8 | another in `embassy-executor` enabled by the `integrated-timers` feature. | ||
diff --git a/embassy-time-queue-driver/CHANGELOG.md b/embassy-time-queue-utils/CHANGELOG.md index 46d00c87d..ae4714f62 100644 --- a/embassy-time-queue-driver/CHANGELOG.md +++ b/embassy-time-queue-utils/CHANGELOG.md | |||
| @@ -1,15 +1,10 @@ | |||
| 1 | # Changelog for embassy-time-queue-driver | 1 | # Changelog for embassy-time-queue-utils |
| 2 | 2 | ||
| 3 | All notable changes to this project will be documented in this file. | 3 | All notable changes to this project will be documented in this file. |
| 4 | 4 | ||
| 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 | 7 | ||
| 8 | ## 0.2.0 - 2024-12-18 | ||
| 9 | |||
| 10 | - Added `generic-queue-N` features. | ||
| 11 | - Added `embassy_time_queue_driver::Queue` struct which uses integrated or a generic storage (configured using `generic-queue-N`). | ||
| 12 | |||
| 13 | ## 0.1.0 - 2024-01-11 | 8 | ## 0.1.0 - 2024-01-11 |
| 14 | 9 | ||
| 15 | Initial release | 10 | Initial release |
diff --git a/embassy-time-queue-driver/Cargo.toml b/embassy-time-queue-utils/Cargo.toml index 990393cc0..48be12118 100644 --- a/embassy-time-queue-driver/Cargo.toml +++ b/embassy-time-queue-utils/Cargo.toml | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | [package] | 1 | [package] |
| 2 | name = "embassy-time-queue-driver" | 2 | name = "embassy-time-queue-utils" |
| 3 | version = "0.2.0" | 3 | version = "0.1.0" |
| 4 | edition = "2021" | 4 | edition = "2021" |
| 5 | description = "Timer queue driver trait for embassy-time" | 5 | description = "Timer queue driver trait for embassy-time" |
| 6 | repository = "https://github.com/embassy-rs/embassy" | 6 | repository = "https://github.com/embassy-rs/embassy" |
| 7 | documentation = "https://docs.embassy.dev/embassy-time-queue-driver" | 7 | documentation = "https://docs.embassy.dev/embassy-time-queue-utils" |
| 8 | readme = "README.md" | 8 | readme = "README.md" |
| 9 | license = "MIT OR Apache-2.0" | 9 | license = "MIT OR Apache-2.0" |
| 10 | categories = [ | 10 | categories = [ |
| @@ -53,6 +53,6 @@ generic-queue-128 = ["_generic-queue"] | |||
| 53 | _generic-queue = [] | 53 | _generic-queue = [] |
| 54 | 54 | ||
| 55 | [package.metadata.embassy_docs] | 55 | [package.metadata.embassy_docs] |
| 56 | src_base = "https://github.com/embassy-rs/embassy/blob/embassy-time-queue-driver-v$VERSION/embassy-time-queue-driver/src/" | 56 | src_base = "https://github.com/embassy-rs/embassy/blob/embassy-time-queue-utils-v$VERSION/embassy-time-queue-utils/src/" |
| 57 | src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-time-queue-driver/src/" | 57 | src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-time-queue-utils/src/" |
| 58 | target = "x86_64-unknown-linux-gnu" | 58 | target = "x86_64-unknown-linux-gnu" |
diff --git a/embassy-time-queue-utils/README.md b/embassy-time-queue-utils/README.md new file mode 100644 index 000000000..36461f1cb --- /dev/null +++ b/embassy-time-queue-utils/README.md | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | # embassy-time-queue-utils | ||
| 2 | |||
| 3 | This crate contains timer queues to help implementing an [`embassy-time-driver`](https://crates.io/crates/embassy-time-driver). | ||
| 4 | |||
| 5 | As a HAL user, you should not need to depend on this crate. | ||
| 6 | |||
| 7 | As a HAL implementer, you need to depend on this crate if you want to implement a time driver, | ||
| 8 | but how you should do so is documented in `embassy-time-driver`. | ||
diff --git a/embassy-time-queue-driver/build.rs b/embassy-time-queue-utils/build.rs index f328e4d9d..f328e4d9d 100644 --- a/embassy-time-queue-driver/build.rs +++ b/embassy-time-queue-utils/build.rs | |||
diff --git a/embassy-time-queue-driver/src/lib.rs b/embassy-time-queue-utils/src/lib.rs index 72453f0ea..a6f66913f 100644 --- a/embassy-time-queue-driver/src/lib.rs +++ b/embassy-time-queue-utils/src/lib.rs | |||
| @@ -2,13 +2,6 @@ | |||
| 2 | #![doc = include_str!("../README.md")] | 2 | #![doc = include_str!("../README.md")] |
| 3 | #![warn(missing_docs)] | 3 | #![warn(missing_docs)] |
| 4 | 4 | ||
| 5 | //! This crate is an implementation detail of `embassy-time-driver`. | ||
| 6 | //! | ||
| 7 | //! As a HAL user, you should not need to depend on this crate directly. | ||
| 8 | //! | ||
| 9 | //! As a HAL implementer, you need to depend on this crate if you want to implement a time driver, | ||
| 10 | //! but how you should do so is documented in `embassy-time-driver`. | ||
| 11 | |||
| 12 | #[cfg(feature = "_generic-queue")] | 5 | #[cfg(feature = "_generic-queue")] |
| 13 | pub mod queue_generic; | 6 | pub mod queue_generic; |
| 14 | #[cfg(not(feature = "_generic-queue"))] | 7 | #[cfg(not(feature = "_generic-queue"))] |
diff --git a/embassy-time-queue-driver/src/queue_generic.rs b/embassy-time-queue-utils/src/queue_generic.rs index 232035bc6..232035bc6 100644 --- a/embassy-time-queue-driver/src/queue_generic.rs +++ b/embassy-time-queue-utils/src/queue_generic.rs | |||
diff --git a/embassy-time-queue-driver/src/queue_integrated.rs b/embassy-time-queue-utils/src/queue_integrated.rs index 246cf1d63..246cf1d63 100644 --- a/embassy-time-queue-driver/src/queue_integrated.rs +++ b/embassy-time-queue-utils/src/queue_integrated.rs | |||
diff --git a/embassy-time/CHANGELOG.md b/embassy-time/CHANGELOG.md index ec3219818..cd4c1afcb 100644 --- a/embassy-time/CHANGELOG.md +++ b/embassy-time/CHANGELOG.md | |||
| @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. | |||
| 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 | 7 | ||
| 8 | ## 0.4.0 - 2024-12-18 | 8 | ## 0.4.0 - 2024-12-22 |
| 9 | 9 | ||
| 10 | - embassy-time no longer provides an `embassy-time-queue-driver` implementation | 10 | - embassy-time no longer provides an `embassy-time-queue-driver` implementation |
| 11 | 11 | ||
diff --git a/embassy-time/Cargo.toml b/embassy-time/Cargo.toml index 23317c6d3..374b460c9 100644 --- a/embassy-time/Cargo.toml +++ b/embassy-time/Cargo.toml | |||
| @@ -24,8 +24,8 @@ target = "x86_64-unknown-linux-gnu" | |||
| 24 | features = ["defmt", "std"] | 24 | features = ["defmt", "std"] |
| 25 | 25 | ||
| 26 | [features] | 26 | [features] |
| 27 | std = ["tick-hz-1_000_000", "critical-section/std", "dep:embassy-time-queue-driver"] | 27 | std = ["tick-hz-1_000_000", "critical-section/std", "dep:embassy-time-queue-utils"] |
| 28 | wasm = ["dep:wasm-bindgen", "dep:js-sys", "dep:wasm-timer", "tick-hz-1_000_000", "dep:embassy-time-queue-driver"] | 28 | wasm = ["dep:wasm-bindgen", "dep:js-sys", "dep:wasm-timer", "tick-hz-1_000_000", "dep:embassy-time-queue-utils"] |
| 29 | 29 | ||
| 30 | ## Display the time since startup next to defmt log messages. | 30 | ## Display the time since startup next to defmt log messages. |
| 31 | ## At most 1 `defmt-timestamp-uptime-*` feature can be used. | 31 | ## At most 1 `defmt-timestamp-uptime-*` feature can be used. |
| @@ -40,7 +40,7 @@ defmt-timestamp-uptime-tms = ["defmt"] | |||
| 40 | defmt-timestamp-uptime-tus = ["defmt"] | 40 | defmt-timestamp-uptime-tus = ["defmt"] |
| 41 | 41 | ||
| 42 | ## Create a `MockDriver` that can be manually advanced for testing purposes. | 42 | ## Create a `MockDriver` that can be manually advanced for testing purposes. |
| 43 | mock-driver = ["tick-hz-1_000_000", "dep:embassy-time-queue-driver"] | 43 | mock-driver = ["tick-hz-1_000_000", "dep:embassy-time-queue-utils"] |
| 44 | 44 | ||
| 45 | #! ### Generic Queue | 45 | #! ### Generic Queue |
| 46 | 46 | ||
| @@ -57,15 +57,15 @@ mock-driver = ["tick-hz-1_000_000", "dep:embassy-time-queue-driver"] | |||
| 57 | #! end user to pick. | 57 | #! end user to pick. |
| 58 | 58 | ||
| 59 | ## Generic Queue with 8 timers | 59 | ## Generic Queue with 8 timers |
| 60 | generic-queue-8 = ["embassy-time-queue-driver/generic-queue-8"] | 60 | generic-queue-8 = ["embassy-time-queue-utils/generic-queue-8"] |
| 61 | ## Generic Queue with 16 timers | 61 | ## Generic Queue with 16 timers |
| 62 | generic-queue-16 = ["embassy-time-queue-driver/generic-queue-16"] | 62 | generic-queue-16 = ["embassy-time-queue-utils/generic-queue-16"] |
| 63 | ## Generic Queue with 32 timers | 63 | ## Generic Queue with 32 timers |
| 64 | generic-queue-32 = ["embassy-time-queue-driver/generic-queue-32"] | 64 | generic-queue-32 = ["embassy-time-queue-utils/generic-queue-32"] |
| 65 | ## Generic Queue with 64 timers | 65 | ## Generic Queue with 64 timers |
| 66 | generic-queue-64 = ["embassy-time-queue-driver/generic-queue-64"] | 66 | generic-queue-64 = ["embassy-time-queue-utils/generic-queue-64"] |
| 67 | ## Generic Queue with 128 timers | 67 | ## Generic Queue with 128 timers |
| 68 | generic-queue-128 = ["embassy-time-queue-driver/generic-queue-128"] | 68 | generic-queue-128 = ["embassy-time-queue-utils/generic-queue-128"] |
| 69 | 69 | ||
| 70 | #! ### Tick Rate | 70 | #! ### Tick Rate |
| 71 | #! | 71 | #! |
| @@ -409,7 +409,7 @@ tick-hz-5_242_880_000 = ["embassy-time-driver/tick-hz-5_242_880_000"] | |||
| 409 | 409 | ||
| 410 | [dependencies] | 410 | [dependencies] |
| 411 | embassy-time-driver = { version = "0.2", path = "../embassy-time-driver" } | 411 | embassy-time-driver = { version = "0.2", path = "../embassy-time-driver" } |
| 412 | embassy-time-queue-driver = { version = "0.2", path = "../embassy-time-queue-driver", optional = true} | 412 | embassy-time-queue-utils = { version = "0.1", path = "../embassy-time-queue-utils", optional = true} |
| 413 | 413 | ||
| 414 | defmt = { version = "0.3", optional = true } | 414 | defmt = { version = "0.3", optional = true } |
| 415 | log = { version = "0.4.14", optional = true } | 415 | log = { version = "0.4.14", optional = true } |
diff --git a/embassy-time/src/driver_mock.rs b/embassy-time/src/driver_mock.rs index 138d60499..bb1961bf2 100644 --- a/embassy-time/src/driver_mock.rs +++ b/embassy-time/src/driver_mock.rs | |||
| @@ -3,7 +3,7 @@ use core::task::Waker; | |||
| 3 | 3 | ||
| 4 | use critical_section::Mutex as CsMutex; | 4 | use critical_section::Mutex as CsMutex; |
| 5 | use embassy_time_driver::Driver; | 5 | use embassy_time_driver::Driver; |
| 6 | use embassy_time_queue_driver::Queue; | 6 | use embassy_time_queue_utils::Queue; |
| 7 | 7 | ||
| 8 | use crate::{Duration, Instant}; | 8 | use crate::{Duration, Instant}; |
| 9 | 9 | ||
diff --git a/embassy-time/src/driver_std.rs b/embassy-time/src/driver_std.rs index 35888fddd..87d7ef7eb 100644 --- a/embassy-time/src/driver_std.rs +++ b/embassy-time/src/driver_std.rs | |||
| @@ -3,7 +3,7 @@ use std::thread; | |||
| 3 | use std::time::{Duration as StdDuration, Instant as StdInstant}; | 3 | use std::time::{Duration as StdDuration, Instant as StdInstant}; |
| 4 | 4 | ||
| 5 | use embassy_time_driver::Driver; | 5 | use embassy_time_driver::Driver; |
| 6 | use embassy_time_queue_driver::Queue; | 6 | use embassy_time_queue_utils::Queue; |
| 7 | 7 | ||
| 8 | struct TimeDriver { | 8 | struct TimeDriver { |
| 9 | signaler: Signaler, | 9 | signaler: Signaler, |
diff --git a/embassy-time/src/driver_wasm.rs b/embassy-time/src/driver_wasm.rs index bcdd1670b..e3207691a 100644 --- a/embassy-time/src/driver_wasm.rs +++ b/embassy-time/src/driver_wasm.rs | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | use std::sync::Mutex; | 1 | use std::sync::Mutex; |
| 2 | 2 | ||
| 3 | use embassy_time_driver::Driver; | 3 | use embassy_time_driver::Driver; |
| 4 | use embassy_time_queue_driver::Queue; | 4 | use embassy_time_queue_utils::Queue; |
| 5 | use wasm_bindgen::prelude::*; | 5 | use wasm_bindgen::prelude::*; |
| 6 | use wasm_timer::Instant as StdInstant; | 6 | use wasm_timer::Instant as StdInstant; |
| 7 | 7 | ||
diff --git a/examples/nrf52840-rtic/Cargo.toml b/examples/nrf52840-rtic/Cargo.toml index f3c660103..00dfe9d80 100644 --- a/examples/nrf52840-rtic/Cargo.toml +++ b/examples/nrf52840-rtic/Cargo.toml | |||
| @@ -10,7 +10,7 @@ rtic = { version = "2", features = ["thumbv7-backend"] } | |||
| 10 | embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } | 10 | embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } |
| 11 | embassy-sync = { version = "0.6.1", path = "../../embassy-sync", features = ["defmt"] } | 11 | embassy-sync = { version = "0.6.1", path = "../../embassy-sync", features = ["defmt"] } |
| 12 | embassy-time = { version = "0.4.0", path = "../../embassy-time", features = [ "defmt", "defmt-timestamp-uptime"] } | 12 | embassy-time = { version = "0.4.0", path = "../../embassy-time", features = [ "defmt", "defmt-timestamp-uptime"] } |
| 13 | embassy-time-queue-driver = { version = "0.2", path = "../../embassy-time-queue-driver", features = ["generic-queue-8"] } | 13 | embassy-time-queue-utils = { version = "0.1", path = "../../embassy-time-queue-utils", features = ["generic-queue-8"] } |
| 14 | embassy-nrf = { version = "0.2.0", path = "../../embassy-nrf", features = [ "defmt", "nrf52840", "time-driver-rtc1", "gpiote", "unstable-pac", "time"] } | 14 | embassy-nrf = { version = "0.2.0", path = "../../embassy-nrf", features = [ "defmt", "nrf52840", "time-driver-rtc1", "gpiote", "unstable-pac", "time"] } |
| 15 | 15 | ||
| 16 | defmt = "0.3" | 16 | defmt = "0.3" |
