diff options
| author | Dario Nieuwenhuis <[email protected]> | 2020-12-14 00:36:29 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2020-12-14 00:36:29 +0100 |
| commit | 80c504cd950349caa96ae37898f6f3325030c615 (patch) | |
| tree | c32386334a8fd16de8d83285f5ab5c9b2f37ac18 /examples | |
| parent | 1aae27270e9cce4571bb39d8082b548a39f5c389 (diff) | |
Add std impl for rand
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/.cargo/config | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/examples/.cargo/config b/examples/.cargo/config new file mode 100644 index 000000000..3f319ae55 --- /dev/null +++ b/examples/.cargo/config | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | [target.'cfg(all(target_arch = "arm", target_os = "none"))'] | ||
| 2 | runner = "probe-run --chip nRF52840_xxAA --defmt" | ||
| 3 | |||
| 4 | rustflags = [ | ||
| 5 | # LLD (shipped with the Rust toolchain) is used as the default linker | ||
| 6 | "-C", "link-arg=--nmagic", | ||
| 7 | "-C", "link-arg=-Tlink.x", | ||
| 8 | "-C", "link-arg=-Tdefmt.x", | ||
| 9 | |||
| 10 | # if you run into problems with LLD switch to the GNU linker by commenting out | ||
| 11 | # this line | ||
| 12 | # "-C", "linker=arm-none-eabi-ld", | ||
| 13 | |||
| 14 | # if you need to link to pre-compiled C libraries provided by a C toolchain | ||
| 15 | # use GCC as the linker by commenting out both lines above and then | ||
| 16 | # uncommenting the three lines below | ||
| 17 | # "-C", "linker=arm-none-eabi-gcc", | ||
| 18 | # "-C", "link-arg=-Wl,-Tlink.x", | ||
| 19 | # "-C", "link-arg=-nostartfiles", | ||
| 20 | ] | ||
| 21 | |||
| 22 | [build] | ||
| 23 | # Pick ONE of these compilation targets | ||
| 24 | # target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+ | ||
| 25 | # target = "thumbv7m-none-eabi" # Cortex-M3 | ||
| 26 | # target = "thumbv7em-none-eabi" # Cortex-M4 and Cortex-M7 (no FPU) | ||
| 27 | target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU) | ||
