fixed async/sync usage
This commit is contained in:
1
examples/esp32c6-async/Cargo.lock
generated
1
examples/esp32c6-async/Cargo.lock
generated
@@ -6,7 +6,6 @@ version = 4
|
||||
name = "as7265x"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"embedded-hal 1.0.0",
|
||||
"embedded-hal-async",
|
||||
"maybe-async",
|
||||
]
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[package]
|
||||
edition = "2024"
|
||||
name = "esp32c6-async"
|
||||
edition = "2024"
|
||||
name = "esp32c6-async"
|
||||
rust-version = "1.88"
|
||||
version = "0.1.0"
|
||||
version = "0.1.0"
|
||||
|
||||
[[bin]]
|
||||
name = "esp32c6-async"
|
||||
@@ -16,12 +16,12 @@ esp-rtos = { version = "0.2.0", features = ["embassy", "esp32c6"] }
|
||||
esp-bootloader-esp-idf = { version = "0.4.0", features = ["esp32c6"] }
|
||||
|
||||
embassy-executor = { version = "0.9.1", features = [] }
|
||||
embassy-time = "0.5.0"
|
||||
embassy-time = "0.5.0"
|
||||
|
||||
critical-section = "1.2.0"
|
||||
static_cell = "2.1.1"
|
||||
static_cell = "2.1.1"
|
||||
|
||||
as7265x = { path = "../..", features = ["async"] }
|
||||
as7265x = { path = "../.." }
|
||||
esp-println = { version = "0.16.1", features = ["esp32c6"] }
|
||||
|
||||
[profile.dev]
|
||||
@@ -30,10 +30,10 @@ esp-println = { version = "0.16.1", features = ["esp32c6"] }
|
||||
opt-level = "s"
|
||||
|
||||
[profile.release]
|
||||
codegen-units = 1 # LLVM can perform better optimizations using a single thread
|
||||
debug = 2
|
||||
codegen-units = 1 # LLVM can perform better optimizations using a single thread
|
||||
debug = 2
|
||||
debug-assertions = false
|
||||
incremental = false
|
||||
lto = 'fat'
|
||||
opt-level = 's'
|
||||
overflow-checks = false
|
||||
incremental = false
|
||||
lto = 'fat'
|
||||
opt-level = 's'
|
||||
overflow-checks = false
|
||||
|
||||
1
examples/esp32c6-sync/Cargo.lock
generated
1
examples/esp32c6-sync/Cargo.lock
generated
@@ -7,6 +7,7 @@ name = "as7265x"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"embedded-hal 1.0.0",
|
||||
"embedded-hal-async",
|
||||
"maybe-async",
|
||||
]
|
||||
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
[package]
|
||||
edition = "2024"
|
||||
name = "esp32c6-sync"
|
||||
edition = "2024"
|
||||
name = "esp32c6-sync"
|
||||
rust-version = "1.88"
|
||||
version = "0.1.0"
|
||||
version = "0.1.0"
|
||||
|
||||
[[bin]]
|
||||
name = "esp32c6-sync"
|
||||
path = "./src/bin/main.rs"
|
||||
|
||||
[dependencies]
|
||||
esp-hal = { version = "1.0.0", features = ["esp32c6","unstable"] }
|
||||
esp-hal = { version = "1.0.0", features = ["esp32c6", "unstable"] }
|
||||
|
||||
esp-bootloader-esp-idf = { version = "0.4.0", features = ["esp32c6"] }
|
||||
|
||||
critical-section = "1.2.0"
|
||||
|
||||
as7265x = { path="../.." }
|
||||
as7265x = { path = "../..", features = ["sync"] }
|
||||
esp-println = { version = "0.16.1", features = ["esp32c6"] }
|
||||
|
||||
|
||||
@@ -25,10 +25,10 @@ esp-println = { version = "0.16.1", features = ["esp32c6"] }
|
||||
opt-level = "s"
|
||||
|
||||
[profile.release]
|
||||
codegen-units = 1 # LLVM can perform better optimizations using a single thread
|
||||
debug = 2
|
||||
codegen-units = 1 # LLVM can perform better optimizations using a single thread
|
||||
debug = 2
|
||||
debug-assertions = false
|
||||
incremental = false
|
||||
lto = 'fat'
|
||||
opt-level = 's'
|
||||
overflow-checks = false
|
||||
incremental = false
|
||||
lto = 'fat'
|
||||
opt-level = 's'
|
||||
overflow-checks = false
|
||||
|
||||
Reference in New Issue
Block a user