diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-05-17 01:04:13 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-17 01:04:13 +0200 |
| commit | 35d05a4214e035bbb6da380c38c0a90b285887f2 (patch) | |
| tree | de9f18e1f858e62b03c0c465135bea3f57d926ac /embassy-nrf-examples/src/bin/timer.rs | |
| parent | cd4111736c0384b1ef957df7f6aa51e3727c29b2 (diff) | |
| parent | a5ad79927ecaa9d6cd7bd96e015b66afa9201d84 (diff) | |
Merge pull request #174 from embassy-rs/nrf-neo
nRF-neo
Diffstat (limited to 'embassy-nrf-examples/src/bin/timer.rs')
| -rw-r--r-- | embassy-nrf-examples/src/bin/timer.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/embassy-nrf-examples/src/bin/timer.rs b/embassy-nrf-examples/src/bin/timer.rs index a2b717bc1..ffbbb7841 100644 --- a/embassy-nrf-examples/src/bin/timer.rs +++ b/embassy-nrf-examples/src/bin/timer.rs | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | 7 | ||
| 8 | #[path = "../example_common.rs"] | 8 | #[path = "../example_common.rs"] |
| 9 | mod example_common; | 9 | mod example_common; |
| 10 | use embassy_nrf::Peripherals; | ||
| 10 | use example_common::*; | 11 | use example_common::*; |
| 11 | 12 | ||
| 12 | use defmt::panic; | 13 | use defmt::panic; |
| @@ -30,7 +31,7 @@ async fn run2() { | |||
| 30 | } | 31 | } |
| 31 | 32 | ||
| 32 | #[embassy::main] | 33 | #[embassy::main] |
| 33 | async fn main(spawner: Spawner) { | 34 | async fn main(spawner: Spawner, p: Peripherals) { |
| 34 | unwrap!(spawner.spawn(run1())); | 35 | unwrap!(spawner.spawn(run1())); |
| 35 | unwrap!(spawner.spawn(run2())); | 36 | unwrap!(spawner.spawn(run2())); |
| 36 | } | 37 | } |
