Fix tick rates not being applied (#1124)

This commit is contained in:
Dániel Buga 2024-01-29 18:53:35 +01:00 committed by GitHub
parent be7b461ae2
commit fabb631b7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 42 additions and 32 deletions

View File

@ -22,6 +22,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fix embassy-time tick rate not set when using systick as the embassy timebase (#1124)
### Changed
### Removed

View File

@ -21,8 +21,9 @@ categories = [
]
[dependencies]
document-features = "0.2.7"
esp-hal-common = { version = "0.15.0", features = ["esp32"], path = "../esp-hal-common" }
document-features = "0.2.7"
esp-hal-common = { version = "0.15.0", features = ["esp32"], path = "../esp-hal-common" }
embassy-time-driver = { version = "0.1.0", optional = true }
[dev-dependencies]
aes = "0.8.3"
@ -101,7 +102,7 @@ embassy-executor-thread = ["esp-hal-common/embassy-executor-thread"]
embassy-integrated-timers = ["esp-hal-common/embassy-integrated-timers"]
## Enable the embassy time driver using the `TIMG0` peripheral. The `TIMG0`
## peripheral has two alarms available for use.
embassy-time-timg0 = ["esp-hal-common/embassy-time-timg0", "embassy-time/tick-hz-1_000_000"]
embassy-time-timg0 = ["esp-hal-common/embassy-time-timg0", "embassy-time-driver/tick-hz-1_000_000"]
[profile.release]
debug = true

View File

@ -21,8 +21,9 @@ categories = [
]
[dependencies]
document-features = "0.2.7"
esp-hal-common = { version = "0.15.0", features = ["esp32c2"], path = "../esp-hal-common" }
document-features = "0.2.7"
esp-hal-common = { version = "0.15.0", features = ["esp32c2"], path = "../esp-hal-common" }
embassy-time-driver = { version = "0.1.0", optional = true }
[dev-dependencies]
critical-section = "1.1.2"
@ -94,10 +95,10 @@ embassy-executor-thread = ["esp-hal-common/embassy-executor-thread"]
embassy-integrated-timers = ["esp-hal-common/embassy-integrated-timers"]
## Enable the embassy time driver using the `SYSTIMER` peripheral. The
## `SYSTIMER` peripheral has three alarams available for use.
embassy-time-systick = ["esp-hal-common/embassy-time-systick", "embassy-time/tick-hz-16_000_000"]
embassy-time-systick = ["esp-hal-common/embassy-time-systick", "embassy-time-driver/tick-hz-16_000_000"]
## Enable the embassy time driver using the `TIMG0` peripheral. The `TIMG0`
## peripheral has two alarms available for use.
embassy-time-timg0 = ["esp-hal-common/embassy-time-timg0", "embassy-time/tick-hz-1_000_000"]
embassy-time-timg0 = ["esp-hal-common/embassy-time-timg0", "embassy-time-driver/tick-hz-1_000_000"]
[profile.release]
debug = true

View File

@ -21,8 +21,9 @@ categories = [
]
[dependencies]
document-features = "0.2.7"
esp-hal-common = { version = "0.15.0", features = ["esp32c3"], path = "../esp-hal-common" }
document-features = "0.2.7"
esp-hal-common = { version = "0.15.0", features = ["esp32c3"], path = "../esp-hal-common" }
embassy-time-driver = { version = "0.1.0", optional = true }
[dev-dependencies]
aes = "0.8.3"
@ -100,10 +101,10 @@ embassy-executor-thread = ["esp-hal-common/embassy-executor-thread"]
embassy-integrated-timers = ["esp-hal-common/embassy-integrated-timers"]
## Enable the embassy time driver using the `SYSTIMER` peripheral. The
## `SYSTIMER` peripheral has three alarams available for use.
embassy-time-systick = ["esp-hal-common/embassy-time-systick", "embassy-time/tick-hz-16_000_000"]
embassy-time-systick = ["esp-hal-common/embassy-time-systick", "embassy-time-driver/tick-hz-16_000_000"]
## Enable the embassy time driver using the `TIMG0` peripheral. The `TIMG0`
## peripheral has two alarms available for use.
embassy-time-timg0 = ["esp-hal-common/embassy-time-timg0", "embassy-time/tick-hz-1_000_000"]
embassy-time-timg0 = ["esp-hal-common/embassy-time-timg0", "embassy-time-driver/tick-hz-1_000_000"]
[profile.release]
debug = true

View File

@ -21,8 +21,9 @@ categories = [
]
[dependencies]
document-features = "0.2.7"
esp-hal-common = { version = "0.15.0", features = ["esp32c6"], path = "../esp-hal-common" }
document-features = "0.2.7"
esp-hal-common = { version = "0.15.0", features = ["esp32c6"], path = "../esp-hal-common" }
embassy-time-driver = { version = "0.1.0", optional = true }
[dev-dependencies]
aes = "0.8.3"
@ -105,10 +106,10 @@ embassy-executor-thread = ["esp-hal-common/embassy-executor-thread"]
embassy-integrated-timers = ["esp-hal-common/embassy-integrated-timers"]
## Enable the embassy time driver using the `SYSTIMER` peripheral. The
## `SYSTIMER` peripheral has three alarams available for use.
embassy-time-systick = ["esp-hal-common/embassy-time-systick", "embassy-time/tick-hz-16_000_000"]
embassy-time-systick = ["esp-hal-common/embassy-time-systick", "embassy-time-driver/tick-hz-16_000_000"]
## Enable the embassy time driver using the `TIMG0` peripheral. The `TIMG0`
## peripheral has two alarms available for use.
embassy-time-timg0 = ["esp-hal-common/embassy-time-timg0", "embassy-time/tick-hz-1_000_000"]
embassy-time-timg0 = ["esp-hal-common/embassy-time-timg0", "embassy-time-driver/tick-hz-1_000_000"]
[profile.release]
debug = true

View File

@ -21,8 +21,9 @@ categories = [
]
[dependencies]
document-features = "0.2.7"
esp-hal-common = { version = "0.15.0", features = ["esp32h2"], path = "../esp-hal-common" }
document-features = "0.2.7"
esp-hal-common = { version = "0.15.0", features = ["esp32h2"], path = "../esp-hal-common" }
embassy-time-driver = { version = "0.1.0", optional = true }
[dev-dependencies]
aes = "0.8.3"
@ -106,10 +107,10 @@ embassy-executor-thread = ["esp-hal-common/embassy-executor-thread"]
embassy-integrated-timers = ["esp-hal-common/embassy-integrated-timers"]
## Enable the embassy time driver using the `SYSTIMER` peripheral. The
## `SYSTIMER` peripheral has three alarams available for use.
embassy-time-systick = ["esp-hal-common/embassy-time-systick", "embassy-time/tick-hz-16_000_000"]
embassy-time-systick = ["esp-hal-common/embassy-time-systick", "embassy-time-driver/tick-hz-16_000_000"]
## Enable the embassy time driver using the `TIMG0` peripheral. The `TIMG0`
## peripheral has two alarms available for use.
embassy-time-timg0 = ["esp-hal-common/embassy-time-timg0", "embassy-time/tick-hz-1_000_000"]
embassy-time-timg0 = ["esp-hal-common/embassy-time-timg0", "embassy-time-driver/tick-hz-1_000_000"]
[profile.release]
debug = true

View File

@ -21,8 +21,9 @@ categories = [
]
[dependencies]
document-features = "0.2.7"
esp-hal-common = { version = "0.15.0", features = ["esp32p4"], path = "../esp-hal-common" }
document-features = "0.2.7"
esp-hal-common = { version = "0.15.0", features = ["esp32p4"], path = "../esp-hal-common" }
embassy-time-driver = { version = "0.1.0", optional = true }
[dev-dependencies]
embassy-time = "0.3.0"
@ -80,10 +81,10 @@ embassy-executor-thread = ["esp-hal-common/embassy-executor-thread"]
embassy-integrated-timers = ["esp-hal-common/embassy-integrated-timers"]
## Enable the embassy time driver using the `SYSTIMER` peripheral. The
## `SYSTIMER` peripheral has three alarams available for use.
embassy-time-systick = ["esp-hal-common/embassy-time-systick", "embassy-time/tick-hz-16_000_000"]
embassy-time-systick = ["esp-hal-common/embassy-time-systick", "embassy-time-driver/tick-hz-16_000_000"]
## Enable the embassy time driver using the `TIMG0` peripheral. The `TIMG0`
## peripheral has two alarms available for use.
embassy-time-timg0 = ["esp-hal-common/embassy-time-timg0", "embassy-time/tick-hz-1_000_000"]
embassy-time-timg0 = ["esp-hal-common/embassy-time-timg0", "embassy-time-driver/tick-hz-1_000_000"]
[profile.release]
debug = true

View File

@ -21,8 +21,9 @@ categories = [
]
[dependencies]
document-features = "0.2.7"
esp-hal-common = { version = "0.15.0", features = ["esp32s2"], path = "../esp-hal-common" }
document-features = "0.2.7"
esp-hal-common = { version = "0.15.0", features = ["esp32s2"], path = "../esp-hal-common" }
embassy-time-driver = { version = "0.1.0", optional = true }
[dev-dependencies]
aes = "0.8.3"
@ -98,10 +99,10 @@ embassy-executor-thread = ["esp-hal-common/embassy-executor-thread"]
embassy-integrated-timers = ["esp-hal-common/embassy-integrated-timers"]
## Enable the embassy time driver using the `SYSTIMER` peripheral. The
## `SYSTIMER` peripheral has three alarams available for use.
embassy-time-systick = ["esp-hal-common/embassy-time-systick", "embassy-time/tick-hz-16_000_000"]
embassy-time-systick = ["esp-hal-common/embassy-time-systick", "embassy-time-driver/tick-hz-80_000_000"]
## Enable the embassy time driver using the `TIMG0` peripheral. The `TIMG0`
## peripheral has two alarms available for use.
embassy-time-timg0 = ["esp-hal-common/embassy-time-timg0", "embassy-time/tick-hz-1_000_000"]
embassy-time-timg0 = ["esp-hal-common/embassy-time-timg0", "embassy-time-driver/tick-hz-1_000_000"]
[profile.release]
debug = true

View File

@ -21,9 +21,10 @@ categories = [
]
[dependencies]
document-features = "0.2.7"
esp-hal-common = { version = "0.15.0", features = ["esp32s3"], path = "../esp-hal-common" }
r0 = { version = "1.0.0", optional = true }
document-features = "0.2.7"
esp-hal-common = { version = "0.15.0", features = ["esp32s3"], path = "../esp-hal-common" }
r0 = { version = "1.0.0", optional = true }
embassy-time-driver = { version = "0.1.0", optional = true }
[dev-dependencies]
aes = "0.8.3"
@ -113,10 +114,10 @@ embassy-executor-thread = ["esp-hal-common/embassy-executor-thread"]
embassy-integrated-timers = ["esp-hal-common/embassy-integrated-timers"]
## Enable the embassy time driver using the `SYSTIMER` peripheral. The
## `SYSTIMER` peripheral has three alarams available for use.
embassy-time-systick = ["esp-hal-common/embassy-time-systick", "embassy-time/tick-hz-16_000_000"]
embassy-time-systick = ["esp-hal-common/embassy-time-systick", "embassy-time-driver/tick-hz-16_000_000"]
## Enable the embassy time driver using the `TIMG0` peripheral. The `TIMG0`
## peripheral has two alarms available for use.
embassy-time-timg0 = ["esp-hal-common/embassy-time-timg0", "embassy-time/tick-hz-1_000_000"]
embassy-time-timg0 = ["esp-hal-common/embassy-time-timg0", "embassy-time-driver/tick-hz-1_000_000"]
[profile.release]
debug = true