Initial init
This commit is contained in:
commit
6851a13ae8
14 changed files with 3677 additions and 0 deletions
67
Cargo.toml
Normal file
67
Cargo.toml
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
[package]
|
||||
name = "Kyriav3"
|
||||
version = "0.2.0"
|
||||
authors = ["Haobo Gu <haobogu@outlook.com>"]
|
||||
description = "Keyboard firmware written in Rust"
|
||||
homepage = "https://github.com/haobogu/rmk"
|
||||
repository = "https://github.com/haobogu/rmk"
|
||||
readme = "../../README.md"
|
||||
edition = "2021"
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
rmk = { version = "0.6", features = ["split", "rp2040_bl", "rp2040_pio"] }
|
||||
embassy-time = { version = "0.4", features = ["defmt"] }
|
||||
embassy-rp = { version = "0.4", features = [
|
||||
"rp2040",
|
||||
"defmt",
|
||||
"time-driver",
|
||||
"critical-section-impl",
|
||||
] }
|
||||
embassy-executor = { version = "0.7", features = [
|
||||
"defmt",
|
||||
"arch-cortex-m",
|
||||
"executor-thread",
|
||||
"task-arena-size-32768",
|
||||
] }
|
||||
embassy-futures = { version = "0.1", features = ["defmt"] }
|
||||
cortex-m-rt = "0.7.3"
|
||||
portable-atomic = { version = "1.5", features = ["critical-section"] }
|
||||
defmt = "0.3"
|
||||
defmt-rtt = "0.4"
|
||||
panic-probe = { version = "0.3", features = ["print-defmt"] }
|
||||
static_cell = "2"
|
||||
|
||||
# [features]
|
||||
# avoid having to use --allow-multiple-definition linker flag
|
||||
# on macOS with Apple Silicon at least
|
||||
# default = ["rp-pico/disable-intrinsics"]
|
||||
|
||||
[build-dependencies]
|
||||
xz2 = "0.1.7"
|
||||
json = "0.12"
|
||||
const-gen = "1.6"
|
||||
|
||||
# Split keyboard example
|
||||
[[bin]]
|
||||
name = "central"
|
||||
path = "src/central.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "peripheral"
|
||||
path = "src/peripheral.rs"
|
||||
|
||||
[profile.dev]
|
||||
codegen-units = 1 # better optimizations
|
||||
debug = true
|
||||
opt-level = 1
|
||||
overflow-checks = true
|
||||
lto = false
|
||||
panic = 'unwind'
|
||||
|
||||
[profile.release]
|
||||
codegen-units = 1 # better optimizations
|
||||
debug = true # no overhead for bare-metal
|
||||
opt-level = "z" # optimize for binary size
|
||||
overflow-checks = false
|
||||
lto = "fat"
|
||||
Loading…
Add table
Add a link
Reference in a new issue