From 20d3dc87f95f844e747a7e93036ce9ddac369081 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Fri, 1 Jan 2021 22:41:59 +0100 Subject: [PATCH] Rename examples -> embassy-nrf-examples --- Cargo.toml | 2 +- {examples => embassy-nrf-examples}/.cargo/config | 0 {examples => embassy-nrf-examples}/Cargo.toml | 2 +- {examples => embassy-nrf-examples}/build.rs | 0 {examples => embassy-nrf-examples}/memory.x | 0 {examples => embassy-nrf-examples}/src/bin/buffered_uart.rs | 0 .../src/bin/executor_fairness_test.rs | 0 {examples => embassy-nrf-examples}/src/bin/gpiote.rs | 0 {examples => embassy-nrf-examples}/src/bin/gpiote_port.rs | 0 {examples => embassy-nrf-examples}/src/bin/multiprio.rs | 0 {examples => embassy-nrf-examples}/src/bin/qspi.rs | 0 {examples => embassy-nrf-examples}/src/bin/rtc_async.rs | 0 {examples => embassy-nrf-examples}/src/bin/rtc_raw.rs | 0 {examples => embassy-nrf-examples}/src/bin/uart.rs | 0 {examples => embassy-nrf-examples}/src/example_common.rs | 0 test-build.sh | 6 +++--- 16 files changed, 5 insertions(+), 5 deletions(-) rename {examples => embassy-nrf-examples}/.cargo/config (100%) rename {examples => embassy-nrf-examples}/Cargo.toml (96%) rename {examples => embassy-nrf-examples}/build.rs (100%) rename {examples => embassy-nrf-examples}/memory.x (100%) rename {examples => embassy-nrf-examples}/src/bin/buffered_uart.rs (100%) rename {examples => embassy-nrf-examples}/src/bin/executor_fairness_test.rs (100%) rename {examples => embassy-nrf-examples}/src/bin/gpiote.rs (100%) rename {examples => embassy-nrf-examples}/src/bin/gpiote_port.rs (100%) rename {examples => embassy-nrf-examples}/src/bin/multiprio.rs (100%) rename {examples => embassy-nrf-examples}/src/bin/qspi.rs (100%) rename {examples => embassy-nrf-examples}/src/bin/rtc_async.rs (100%) rename {examples => embassy-nrf-examples}/src/bin/rtc_raw.rs (100%) rename {examples => embassy-nrf-examples}/src/bin/uart.rs (100%) rename {examples => embassy-nrf-examples}/src/example_common.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index 79280404..5ba9ba7d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,8 +3,8 @@ members = [ "embassy", "embassy-nrf", + "embassy-nrf-examples", "embassy-macros", - "examples", ] exclude = [ diff --git a/examples/.cargo/config b/embassy-nrf-examples/.cargo/config similarity index 100% rename from examples/.cargo/config rename to embassy-nrf-examples/.cargo/config diff --git a/examples/Cargo.toml b/embassy-nrf-examples/Cargo.toml similarity index 96% rename from examples/Cargo.toml rename to embassy-nrf-examples/Cargo.toml index c845c1bf..0c812db1 100644 --- a/examples/Cargo.toml +++ b/embassy-nrf-examples/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["Dario Nieuwenhuis "] edition = "2018" -name = "embassy-examples" +name = "embassy-nrf-examples" version = "0.1.0" [features] diff --git a/examples/build.rs b/embassy-nrf-examples/build.rs similarity index 100% rename from examples/build.rs rename to embassy-nrf-examples/build.rs diff --git a/examples/memory.x b/embassy-nrf-examples/memory.x similarity index 100% rename from examples/memory.x rename to embassy-nrf-examples/memory.x diff --git a/examples/src/bin/buffered_uart.rs b/embassy-nrf-examples/src/bin/buffered_uart.rs similarity index 100% rename from examples/src/bin/buffered_uart.rs rename to embassy-nrf-examples/src/bin/buffered_uart.rs diff --git a/examples/src/bin/executor_fairness_test.rs b/embassy-nrf-examples/src/bin/executor_fairness_test.rs similarity index 100% rename from examples/src/bin/executor_fairness_test.rs rename to embassy-nrf-examples/src/bin/executor_fairness_test.rs diff --git a/examples/src/bin/gpiote.rs b/embassy-nrf-examples/src/bin/gpiote.rs similarity index 100% rename from examples/src/bin/gpiote.rs rename to embassy-nrf-examples/src/bin/gpiote.rs diff --git a/examples/src/bin/gpiote_port.rs b/embassy-nrf-examples/src/bin/gpiote_port.rs similarity index 100% rename from examples/src/bin/gpiote_port.rs rename to embassy-nrf-examples/src/bin/gpiote_port.rs diff --git a/examples/src/bin/multiprio.rs b/embassy-nrf-examples/src/bin/multiprio.rs similarity index 100% rename from examples/src/bin/multiprio.rs rename to embassy-nrf-examples/src/bin/multiprio.rs diff --git a/examples/src/bin/qspi.rs b/embassy-nrf-examples/src/bin/qspi.rs similarity index 100% rename from examples/src/bin/qspi.rs rename to embassy-nrf-examples/src/bin/qspi.rs diff --git a/examples/src/bin/rtc_async.rs b/embassy-nrf-examples/src/bin/rtc_async.rs similarity index 100% rename from examples/src/bin/rtc_async.rs rename to embassy-nrf-examples/src/bin/rtc_async.rs diff --git a/examples/src/bin/rtc_raw.rs b/embassy-nrf-examples/src/bin/rtc_raw.rs similarity index 100% rename from examples/src/bin/rtc_raw.rs rename to embassy-nrf-examples/src/bin/rtc_raw.rs diff --git a/examples/src/bin/uart.rs b/embassy-nrf-examples/src/bin/uart.rs similarity index 100% rename from examples/src/bin/uart.rs rename to embassy-nrf-examples/src/bin/uart.rs diff --git a/examples/src/example_common.rs b/embassy-nrf-examples/src/example_common.rs similarity index 100% rename from examples/src/example_common.rs rename to embassy-nrf-examples/src/example_common.rs diff --git a/test-build.sh b/test-build.sh index 52bf7bb7..f67cc5b2 100755 --- a/test-build.sh +++ b/test-build.sh @@ -2,9 +2,6 @@ set -euxo pipefail -# examples -(cd examples; cargo build --target thumbv7em-none-eabi --bins) - # embassy std (cd embassy; cargo build --features log,std) @@ -14,6 +11,9 @@ set -euxo pipefail (cd embassy; cargo build --target thumbv7em-none-eabi --features defmt) # embassy-nrf + +(cd embassy-nrf-examples; cargo build --target thumbv7em-none-eabi --bins) + (cd embassy-nrf; cargo build --target thumbv7em-none-eabi --features 52810) #(cd embassy-nrf; cargo build --target thumbv7em-none-eabi --features 52811) # nrf52811-hal doesn't exist yet (cd embassy-nrf; cargo build --target thumbv7em-none-eabi --features 52832)