Push-Mirror of https://codeberg.org/c-its/esp32-c_its-companion
- Rust 99.2%
- Shell 0.8%
| .cargo | ||
| src | ||
| .clippy.toml | ||
| .gitignore | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| Readme.md | ||
| rust-toolchain.toml | ||
| rustfmt.toml | ||
ESP32-C5 C-ITS Visualizer
Displays different C-ITS receive-only use cases for cheap.
Usage
Toolchain Installation
Install the toolchain, targe and tools like this:
rustup toolchain install nightly --component rust-src
rustup target add riscv32imac-unknown-none-elf
# cargo install esp-generate --locked
# cargo install esp-config --features=tui --locked
cargo install espflash --locked
(Project was setup using esp-generate with the options --chip esp32c5 -o esp32c5-wroom-1-psram -o alloc -o log -o unstable-hal -o wifi -o esp-backtrace -o embassy.)
To use the proper rustfmt features, enable the nightly toolchain:
rustup component add --toolchain nightly rustfmt
Build and Flash
Connect your ESP32-C5 and run:
cargo run --release
Run Unit Tests on Host
The unit tests in this project are meant to be run on the host:
cargo test --target host-tuple --bin test --no-default-features -F std,spat