fw-rust: Minimal hello world
This commit is contained in:
parent
af3790be0d
commit
aa75712418
7 changed files with 305 additions and 0 deletions
33
firmware/rust/Cargo.toml
Normal file
33
firmware/rust/Cargo.toml
Normal file
|
@ -0,0 +1,33 @@
|
|||
[package]
|
||||
name = "clock-generator"
|
||||
version = "0.1.0-dev"
|
||||
authors = ["finga <finga@onders.org>"]
|
||||
edition = "2018"
|
||||
license = "GPL-3.0-or-later"
|
||||
|
||||
[[bin]]
|
||||
name = "clock-generator"
|
||||
test = false
|
||||
bench = false
|
||||
|
||||
[dependencies]
|
||||
panic-halt = "0.2"
|
||||
nb = "1.0"
|
||||
embedded-hal = "0.2"
|
||||
|
||||
[dependencies.atmega-hal]
|
||||
git = "https://github.com/rahix/avr-hal"
|
||||
branch = "main"
|
||||
features = ["atmega328p", "rt"]
|
||||
|
||||
[profile.dev]
|
||||
panic = "abort"
|
||||
lto = true
|
||||
opt-level = "s"
|
||||
|
||||
[profile.release]
|
||||
panic = "abort"
|
||||
codegen-units = 1
|
||||
debug = true
|
||||
lto = true
|
||||
opt-level = "s"
|
Loading…
Add table
Add a link
Reference in a new issue