aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2020-11-27 18:42:59 +0100
committerDario Nieuwenhuis <[email protected]>2020-11-27 18:42:59 +0100
commit78135a81d96a8bb74207b3f73c9f261aa4561a18 (patch)
tree534fb19b9e9d51b557a76617a53934253431f1f4 /examples
parent49d5121094fb7e2f4ddc3aead351769443515d55 (diff)
Remove anyfmt
Diffstat (limited to 'examples')
-rw-r--r--examples/Cargo.toml11
-rw-r--r--examples/src/bin/qspi.rs3
-rw-r--r--examples/src/example_common.rs2
3 files changed, 8 insertions, 8 deletions
diff --git a/examples/Cargo.toml b/examples/Cargo.toml
index 719f73269..71d0bbd77 100644
--- a/examples/Cargo.toml
+++ b/examples/Cargo.toml
@@ -17,17 +17,16 @@ defmt-error = []
17 17
18 18
19[dependencies] 19[dependencies]
20embassy = { version = "0.1.0", path = "../embassy", features = ["defmt"] } 20embassy = { version = "0.1.0", path = "../embassy", features = ["defmt-trace"] }
21embassy-nrf = { version = "0.1.0", path = "../embassy-nrf", features = ["defmt", "defmt-trace", "52840"] } 21embassy-nrf = { version = "0.1.0", path = "../embassy-nrf", features = ["defmt-trace", "52840"] }
22anyfmt = { version = "0.1.0", path = "../anyfmt", features = ["defmt"] }
23 22
24defmt = "0.1.0" 23defmt = "0.1.2"
25defmt-rtt = "0.1.0" 24defmt-rtt = "0.1.0"
26 25
27cortex-m = { version = "0.6.3" } 26cortex-m = { version = "0.6.3" }
28cortex-m-rt = "0.6.12" 27cortex-m-rt = "0.6.12"
29embedded-hal = { version = "0.2.4" } 28embedded-hal = { version = "0.2.4" }
30panic-probe = "0.1.0" 29panic-probe = "0.1.0"
31nrf52840-hal = { version = "0.11.0" } 30nrf52840-hal = { version = "0.12.0" }
32futures = { version = "0.3.7", default-features = false, features = ["async-await"] } 31futures = { version = "0.3.8", default-features = false, features = ["async-await"] }
33cortex-m-rtic = { git = "https://github.com/rtic-rs/cortex-m-rtic", branch = "master"} 32cortex-m-rtic = { git = "https://github.com/rtic-rs/cortex-m-rtic", branch = "master"}
diff --git a/examples/src/bin/qspi.rs b/examples/src/bin/qspi.rs
index a7f668ca7..644018e2d 100644
--- a/examples/src/bin/qspi.rs
+++ b/examples/src/bin/qspi.rs
@@ -6,8 +6,8 @@
6mod example_common; 6mod example_common;
7use example_common::*; 7use example_common::*;
8 8
9use anyfmt::panic;
10use cortex_m_rt::entry; 9use cortex_m_rt::entry;
10use defmt::{assert_eq, panic, *};
11use nrf52840_hal::gpio; 11use nrf52840_hal::gpio;
12 12
13use embassy::executor::{task, Executor}; 13use embassy::executor::{task, Executor};
@@ -65,6 +65,7 @@ async fn run() {
65 write_opcode: qspi::WriteOpcode::PP4IO, 65 write_opcode: qspi::WriteOpcode::PP4IO,
66 xip_offset: 0, 66 xip_offset: 0,
67 write_page_size: qspi::WritePageSize::_256BYTES, 67 write_page_size: qspi::WritePageSize::_256BYTES,
68 deep_power_down: None,
68 }; 69 };
69 70
70 let mut q = qspi::Qspi::new(p.QSPI, config); 71 let mut q = qspi::Qspi::new(p.QSPI, config);
diff --git a/examples/src/example_common.rs b/examples/src/example_common.rs
index 1a12fa69a..60bb02082 100644
--- a/examples/src/example_common.rs
+++ b/examples/src/example_common.rs
@@ -4,7 +4,7 @@ use defmt_rtt as _; // global logger
4use nrf52840_hal as _; 4use nrf52840_hal as _;
5use panic_probe as _; 5use panic_probe as _;
6 6
7pub use anyfmt::*; 7pub use defmt::*;
8 8
9use core::sync::atomic::{AtomicUsize, Ordering}; 9use core::sync::atomic::{AtomicUsize, Ordering};
10 10