adds blocking pwm working impl for the spinnyboy in rust based on the esp32c6

This commit is contained in:
Robert Schauklies 2025-12-21 18:52:16 +01:00
parent dd341bbb67
commit 6f2ab7cb95
9 changed files with 1490 additions and 0 deletions

34
spinnyboy_rust/Cargo.toml Normal file
View file

@ -0,0 +1,34 @@
[package]
edition = "2024"
name = "spinnyboy_rust"
rust-version = "1.88"
version = "0.1.0"
[[bin]]
name = "spinnyboy_rust"
path = "./src/bin/main.rs"
[dependencies]
esp-hal = { version = "1.0.0", features = ["esp32c6", "unstable"] }
esp-bootloader-esp-idf = { version = "0.4.0", features = ["esp32c6"] }
critical-section = "1.2.0"
esp-alloc = "0.9.0"
rtt-target = "0.6.2"
[profile.dev]
# Rust debug is too slow.
# For debug builds always builds with some optimization
opt-level = "s"
[profile.release]
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