d3xs-firmware

Crates.iod3xs-firmware
lib.rsd3xs-firmware
version0.1.0
sourcesrc
created_at2023-11-22 20:09:20.67456
updated_at2023-11-22 20:09:20.67456
descriptionPhysical access control (firmware)
homepage
repositoryhttps://github.com/kpcyrd/d3xs
max_upload_size
id1045480
size64,452
(kpcyrd)

documentation

README

d3xs-firmware

Firmware for esp32c3 microcontroller (riscv32imc-esp-espidf).

Building and testing the firmware

For basic usage refer to the regular README in the parent directory.

For development you can use this command to compile the firmware, flash it to an attached esp32c3 and open the serial monitor after flashing:

cd firmware
D3XS_BRIDGE_KEY="cW49lkXDeM0wOT8N7QxAWePmWs8xZK1FXt1uQT/pcG4=" RUSTC_BOOTSTRAP=1 cargo espflash flash --release -M

Unit testing

For development, run these from outside of the firmware directory. This is to avoid loading the firmware configuration from firmware/.cargo/.

cargo watch -- cargo test -p d3xs-firmware
cargo check -p d3xs-firmware --lib
cargo clippy -p d3xs-firmware --lib
Commit count: 51

cargo fmt