diff options
| author | pennae <[email protected]> | 2023-04-18 21:07:36 +0200 |
|---|---|---|
| committer | pennae <[email protected]> | 2023-04-18 21:07:36 +0200 |
| commit | 8a9136e4e47a2d02084f343cd6d212f419c37f04 (patch) | |
| tree | ed9439f42f3dcfeb609cdc8911c83f8b07b87326 /examples/rp | |
| parent | a673b9aa294a55c441f3f61c48481484629b4347 (diff) | |
enable inline-asm feature for cortex-m in examples
inline assembly is supported since rust 1.59, we're way past that.
enabling this makes the compiled code more compact, and on rp2040
even decreses memory usage by not needing thunks in sram.
Diffstat (limited to 'examples/rp')
| -rw-r--r-- | examples/rp/Cargo.toml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/rp/Cargo.toml b/examples/rp/Cargo.toml index f0fd27991..8067f7ba5 100644 --- a/examples/rp/Cargo.toml +++ b/examples/rp/Cargo.toml | |||
| @@ -20,7 +20,7 @@ defmt = "0.3" | |||
| 20 | defmt-rtt = "0.4" | 20 | defmt-rtt = "0.4" |
| 21 | 21 | ||
| 22 | #cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] } | 22 | #cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] } |
| 23 | cortex-m = { version = "0.7.6" } | 23 | cortex-m = { version = "0.7.6", features = ["inline-asm"] } |
| 24 | cortex-m-rt = "0.7.0" | 24 | cortex-m-rt = "0.7.0" |
| 25 | panic-probe = { version = "0.3", features = ["print-defmt"] } | 25 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 26 | futures = { version = "0.3.17", default-features = false, features = ["async-await", "cfg-target-has-atomic", "unstable"] } | 26 | futures = { version = "0.3.17", default-features = false, features = ["async-await", "cfg-target-has-atomic", "unstable"] } |
