Skip to content

Commit

Permalink
Fix tick rates not being applied
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Jan 29, 2024
1 parent 3eb296c commit f60827b
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 32 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,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

### Changed

### Removed
Expand Down
7 changes: 4 additions & 3 deletions esp32-hal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
9 changes: 5 additions & 4 deletions esp32c2-hal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 = ["dep:embassy-time-driver", "esp-hal-common/embassy-time-timg0", "embassy-time-driver?/tick-hz-1_000_000"]

[profile.release]
debug = true
Expand Down
9 changes: 5 additions & 4 deletions esp32c3-hal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
9 changes: 5 additions & 4 deletions esp32c6-hal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
9 changes: 5 additions & 4 deletions esp32h2-hal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
9 changes: 5 additions & 4 deletions esp32p4-hal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
9 changes: 5 additions & 4 deletions esp32s2-hal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
11 changes: 6 additions & 5 deletions esp32s3-hal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f60827b

Please sign in to comment.