2019-12-01 17:03:02 +08:00
|
|
|
Trivial network-controlled plugs
|
|
|
|
================================
|
2019-03-22 00:54:30 +08:00
|
|
|
|
|
|
|
|
2019-12-01 17:03:02 +08:00
|
|
|
Instructions
|
|
|
|
------------
|
2019-03-22 00:54:30 +08:00
|
|
|
|
|
|
|
![Made for NixOS](https://nixos.org/logo/nixos-lores.png)
|
|
|
|
|
2019-12-01 17:04:00 +08:00
|
|
|
Build the firmware with `default.nix`:
|
2019-03-22 00:54:30 +08:00
|
|
|
|
|
|
|
* `nix-build`
|
|
|
|
* This uses **cargo-vendor** to bundle dependencies, so that unstable versions from git can be used.
|
2019-12-01 17:03:02 +08:00
|
|
|
* Run `result/bin/flash-tnetplug` to flash a devboard with OpenOCD and quit.
|
2019-03-22 00:54:30 +08:00
|
|
|
|
2019-12-01 17:04:00 +08:00
|
|
|
Development environment with `shell.nix`:
|
2019-03-22 00:54:30 +08:00
|
|
|
|
|
|
|
* `nix-shell`
|
|
|
|
* Spawning `openocd`, the devboard should be connected already.
|
|
|
|
* Instructions (`cargo run --release`) are printed.
|