fixed async/sync usage

This commit is contained in:
2026-01-26 14:57:55 +01:00
parent a7e9d2768b
commit 63171eb290
6 changed files with 30 additions and 31 deletions

View File

@@ -7,6 +7,7 @@ name = "as7265x"
version = "0.1.0"
dependencies = [
"embedded-hal 1.0.0",
"embedded-hal-async",
"maybe-async",
]

View File

@@ -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