diff options
| author | Dario Nieuwenhuis <[email protected]> | 2020-11-01 17:17:24 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2020-11-01 17:17:24 +0100 |
| commit | 5e8608c7a5b1e4e92f1fb650ea0ef47e5a6df563 (patch) | |
| tree | f731a0329d92d8fae4168957f8e90716b58ad00b /examples/src/bin/rtc_async.rs | |
| parent | 2c13e251849fd3e3cf06e2d5363c311ac880c77d (diff) | |
Make defmt optional with new `anyfmt` crate
Diffstat (limited to 'examples/src/bin/rtc_async.rs')
| -rw-r--r-- | examples/src/bin/rtc_async.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/src/bin/rtc_async.rs b/examples/src/bin/rtc_async.rs index 5126a2cc8..b4ee736b7 100644 --- a/examples/src/bin/rtc_async.rs +++ b/examples/src/bin/rtc_async.rs | |||
| @@ -39,7 +39,7 @@ static EXECUTOR: Forever<TimerExecutor<rtc::Alarm<pac::RTC1>>> = Forever::new(); | |||
| 39 | fn main() -> ! { | 39 | fn main() -> ! { |
| 40 | info!("Hello World!"); | 40 | info!("Hello World!"); |
| 41 | 41 | ||
| 42 | let p = embassy_nrf::pac::Peripherals::take().dewrap(); | 42 | let p = unwrap!(embassy_nrf::pac::Peripherals::take()); |
| 43 | 43 | ||
| 44 | clocks::Clocks::new(p.CLOCK) | 44 | clocks::Clocks::new(p.CLOCK) |
| 45 | .enable_ext_hfosc() | 45 | .enable_ext_hfosc() |
| @@ -53,8 +53,8 @@ fn main() -> ! { | |||
| 53 | 53 | ||
| 54 | let executor = EXECUTOR.put(TimerExecutor::new(rtc.alarm0(), cortex_m::asm::sev)); | 54 | let executor = EXECUTOR.put(TimerExecutor::new(rtc.alarm0(), cortex_m::asm::sev)); |
| 55 | 55 | ||
| 56 | executor.spawn(run1()).dewrap(); | 56 | unwrap!(executor.spawn(run1())); |
| 57 | executor.spawn(run2()).dewrap(); | 57 | unwrap!(executor.spawn(run2())); |
| 58 | 58 | ||
| 59 | loop { | 59 | loop { |
| 60 | executor.run(); | 60 | executor.run(); |
