aboutsummaryrefslogtreecommitdiff
path: root/docs/modules/ROOT/examples
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2021-12-10 12:58:23 +0100
committerUlf Lilleengen <[email protected]>2021-12-10 12:58:23 +0100
commitaa0abe976a481b0fb58d6bdee5d448658e6f8ffc (patch)
tree5b44c88091681ccac8a8990b3ad94c2e960ea933 /docs/modules/ROOT/examples
parente5d4d0952b78ef343f14205f5ebd3f1d7804f9e8 (diff)
Fix doc example compile
Diffstat (limited to 'docs/modules/ROOT/examples')
-rw-r--r--docs/modules/ROOT/examples/basic/Cargo.toml5
-rw-r--r--docs/modules/ROOT/examples/basic/src/main.rs7
2 files changed, 7 insertions, 5 deletions
diff --git a/docs/modules/ROOT/examples/basic/Cargo.toml b/docs/modules/ROOT/examples/basic/Cargo.toml
index a683a28bf..0f1c30da3 100644
--- a/docs/modules/ROOT/examples/basic/Cargo.toml
+++ b/docs/modules/ROOT/examples/basic/Cargo.toml
@@ -5,9 +5,8 @@ name = "embassy-basic-example"
5version = "0.1.0" 5version = "0.1.0"
6 6
7[dependencies] 7[dependencies]
8embassy = { version = "0.1.0", path = "../../../../embassy", features = ["defmt"] } 8embassy = { version = "0.1.0", path = "../../../../../embassy", features = ["defmt"] }
9embassy-traits = { version = "0.1.0", path = "../../../../embassy-traits", features = ["defmt"] } 9embassy-nrf = { version = "0.1.0", path = "../../../../../embassy-nrf", features = ["defmt", "nrf52840", "time-driver-rtc1", "gpiote"] }
10embassy-nrf = { version = "0.1.0", path = "../../../../embassy-nrf", features = ["defmt", "nrf52840", "time-driver-rtc1", "gpiote"] }
11 10
12defmt = "0.3" 11defmt = "0.3"
13defmt-rtt = "0.3" 12defmt-rtt = "0.3"
diff --git a/docs/modules/ROOT/examples/basic/src/main.rs b/docs/modules/ROOT/examples/basic/src/main.rs
index 0152b40bb..2a9b1facc 100644
--- a/docs/modules/ROOT/examples/basic/src/main.rs
+++ b/docs/modules/ROOT/examples/basic/src/main.rs
@@ -9,8 +9,11 @@ use defmt::*;
9 9
10use embassy::executor::Spawner; 10use embassy::executor::Spawner;
11use embassy::time::{Duration, Timer}; 11use embassy::time::{Duration, Timer};
12use embassy_nrf::gpio::{Level, Output, OutputDrive}; 12use embassy_nrf::{
13use embassy_nrf::Peripherals; 13 gpio::{Level, Output, OutputDrive},
14 peripherals::P0_13,
15 Peripherals,
16};
14use embedded_hal::digital::v2::OutputPin; 17use embedded_hal::digital::v2::OutputPin;
15 18
16#[embassy::task] 19#[embassy::task]