diff options
Diffstat (limited to 'examples/nrf52840/src')
| -rw-r--r-- | examples/nrf52840/src/bin/nvmc.rs | 2 | ||||
| -rw-r--r-- | examples/nrf52840/src/bin/wdt.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/nrf52840/src/bin/nvmc.rs b/examples/nrf52840/src/bin/nvmc.rs index 75d090fbb..33a44516d 100644 --- a/examples/nrf52840/src/bin/nvmc.rs +++ b/examples/nrf52840/src/bin/nvmc.rs | |||
| @@ -14,7 +14,7 @@ async fn main(_spawner: Spawner) { | |||
| 14 | let p = embassy_nrf::init(Default::default()); | 14 | let p = embassy_nrf::init(Default::default()); |
| 15 | info!("Hello NVMC!"); | 15 | info!("Hello NVMC!"); |
| 16 | 16 | ||
| 17 | // probe-run breaks without this, I'm not sure why. | 17 | // probe-rs-cli run breaks without this, I'm not sure why. |
| 18 | Timer::after(Duration::from_secs(1)).await; | 18 | Timer::after(Duration::from_secs(1)).await; |
| 19 | 19 | ||
| 20 | let mut f = Nvmc::new(p.NVMC); | 20 | let mut f = Nvmc::new(p.NVMC); |
diff --git a/examples/nrf52840/src/bin/wdt.rs b/examples/nrf52840/src/bin/wdt.rs index b0b9c3b81..ccfd0e439 100644 --- a/examples/nrf52840/src/bin/wdt.rs +++ b/examples/nrf52840/src/bin/wdt.rs | |||
| @@ -16,7 +16,7 @@ async fn main(_spawner: Spawner) { | |||
| 16 | let mut config = Config::default(); | 16 | let mut config = Config::default(); |
| 17 | config.timeout_ticks = 32768 * 3; // 3 seconds | 17 | config.timeout_ticks = 32768 * 3; // 3 seconds |
| 18 | 18 | ||
| 19 | // This is needed for `probe-run` to be able to catch the panic message | 19 | // This is needed for `probe-rs-cli run` to be able to catch the panic message |
| 20 | // in the WDT interrupt. The core resets 2 ticks after firing the interrupt. | 20 | // in the WDT interrupt. The core resets 2 ticks after firing the interrupt. |
| 21 | config.run_during_debug_halt = false; | 21 | config.run_during_debug_halt = false; |
| 22 | 22 | ||
