init basic examples and setup

This commit is contained in:
2026-05-25 18:16:02 +02:00
commit 8028dfd5fc
28 changed files with 2150 additions and 0 deletions

62
justfile Normal file
View File

@@ -0,0 +1,62 @@
set shell := ["bash", "-eu", "-o", "pipefail", "-c"]
target := "thumbv7m-none-eabi"
chip := env_var_or_default("PROBE_RS_CHIP", "STM32F103C8")
build:
cargo build --workspace
build-blinky:
cargo build -p blinky-basic
build-timer:
cargo build -p blinky-timer
build-button:
cargo build -p button-input
build-embassy-blinky:
cargo build -p embassy-blinky
build-embassy-button:
cargo build -p embassy-button
flash-blinky:
cargo build -p blinky-basic
probe-rs download --chip {{chip}} target/{{target}}/debug/blinky-basic
flash-timer:
cargo build -p blinky-timer
probe-rs download --chip {{chip}} target/{{target}}/debug/blinky-timer
flash-button:
cargo build -p button-input
probe-rs download --chip {{chip}} target/{{target}}/debug/button-input
flash-embassy-blinky:
cargo build -p embassy-blinky
probe-rs download --chip {{chip}} target/{{target}}/debug/embassy-blinky
flash-embassy-button:
cargo build -p embassy-button
probe-rs download --chip {{chip}} target/{{target}}/debug/embassy-button
run-blinky:
cargo build -p blinky-basic
probe-rs run --chip {{chip}} target/{{target}}/debug/blinky-basic
run-embassy-blinky:
cargo build -p embassy-blinky
probe-rs run --chip {{chip}} target/{{target}}/debug/embassy-blinky
fmt:
cargo fmt --all
clippy:
cargo clippy --workspace --bins -- -D warnings
check:
cargo check --workspace
clean:
cargo clean