|
1 | 1 | # [Documentation](https://docs.rs/libdaisy)
|
2 | 2 |
|
3 | 3 | # libdaisy
|
| 4 | + |
4 | 5 | Hardware Abstraction Layer implementation for Daisy boards.
|
5 | 6 |
|
6 | 7 | ## Requirements
|
7 |
| -* Hardware target |
8 |
| -``` |
9 |
| -$ rustup target add thumbv7em-none-eabihf |
10 |
| -``` |
11 | 8 |
|
12 |
| -* [cargo-binutils][cargo-binutils-url] |
13 |
| -``` console |
14 |
| -$ cargo install cargo-binutils |
| 9 | +- Hardware target |
15 | 10 |
|
16 |
| -$ rustup component add llvm-tools-preview |
| 11 | +```bash |
| 12 | +rustup target add thumbv7em-none-eabihf |
17 | 13 | ```
|
18 |
| -# A Flashing Utility |
19 |
| -* [Electro-smith web programmer](https://electro-smith.github.io/Programmer/) |
20 | 14 |
|
21 |
| -OR |
| 15 | +- [cargo-binutils][cargo-binutils-url] |
22 | 16 |
|
23 |
| -* [dfu-util](http://dfu-util.sourceforge.net/) |
| 17 | +```bash |
| 18 | +cargo install cargo-binutils |
24 | 19 |
|
25 |
| -OR |
| 20 | +rustup component add llvm-tools-preview |
| 21 | +``` |
26 | 22 |
|
27 |
| -* [Probe.rs](https://probe.rs/) |
| 23 | +# A Flashing Utility |
| 24 | + |
| 25 | +One of: |
28 | 26 |
|
29 |
| -This requires a debug probe of some sort (e.g. ST link) and allows for fast debugging messages via RTT. |
| 27 | +- [electro-smith web programmer](https://electro-smith.github.io/Programmer/) |
| 28 | +- [dfu-util](http://dfu-util.sourceforge.net/) |
| 29 | +- [probe.rs](https://probe.rs/) |
30 | 30 |
|
| 31 | +`probe.rs` requires a debug probe of some sort (e.g. ST link) and allows for fast debugging messages via RTT. |
| 32 | + |
| 33 | +```bash |
31 | 34 | cargo embed --features log-rtt --example passthru
|
| 35 | +``` |
32 | 36 |
|
33 | 37 | ## Build Examples
|
| 38 | + |
| 39 | +```bash |
34 | 40 | cargo objcopy --example blinky --release -- -O binary blinky.bin
|
| 41 | +``` |
35 | 42 |
|
| 43 | +```bash |
36 | 44 | cargo objcopy --example passthru --release -- -O binary passthru.bin
|
37 |
| - |
38 |
| -[cargo-binutils-url]: https://github.com/rust-embedded/cargo-binutils |
| 45 | +``` |
39 | 46 |
|
40 | 47 | # Minimum supported Rust version
|
| 48 | + |
41 | 49 | The Minimum Supported Rust Version (MSRV) at the moment is 1.51.0.
|
| 50 | + |
42 | 51 | # Demos
|
43 | 52 |
|
44 | 53 | [Looper](https://github.com/mtthw-meyer/daisy-looper) - Basic one button looper.
|
| 54 | + |
| 55 | +[cargo-binutils-url]: https://github.com/rust-embedded/cargo-binutils |
0 commit comments