diff --git a/Cargo.toml b/Cargo.toml index 3416a94261f7b0c1837d97158df17d825c40b08f..c15490ab72cb6d8ae67858339f82d5612f5f1683 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,14 +25,14 @@ memoffset = "0.9.0" [workspace] members = [ - "examples/gpio-demo", - "examples/i2c-demo", - "examples/jtag-demo", - "examples/lz4d-demo", - "examples/multicore-demo/mcu", - "examples/multicore-demo/dsp", - "examples/pwm-demo", - "examples/uart-demo", + "examples/peripherals/gpio-demo", + "examples/peripherals/i2c-demo", + "examples/peripherals/jtag-demo", + "examples/peripherals/lz4d-demo", + "examples/multicore/multicore-demo/mcu", + "examples/multicore/multicore-demo/dsp", + "examples/peripherals/pwm-demo", + "examples/peripherals/uart-demo", ] [features] diff --git a/examples/multicore-demo/README.md b/examples/multicore/multicore-demo/README.md similarity index 100% rename from examples/multicore-demo/README.md rename to examples/multicore/multicore-demo/README.md diff --git a/examples/i2c-demo/Cargo.toml b/examples/multicore/multicore-demo/dsp/Cargo.toml similarity index 81% rename from examples/i2c-demo/Cargo.toml rename to examples/multicore/multicore-demo/dsp/Cargo.toml index c33d60d1a76f492925de06aa330c592a0df26b71..37f131fffb49a76c2f12754f2f430ceb07236b6f 100644 --- a/examples/i2c-demo/Cargo.toml +++ b/examples/multicore/multicore-demo/dsp/Cargo.toml @@ -1,13 +1,12 @@ [package] -name = "i2c-demo" +name = "multicore-demo-dsp" version = "0.1.0" edition = "2021" -publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bl-soc = { path = "../..", features = ["bl808"] } +bl-soc = { path = "../../../..", features = ["bl808"] } base-address = "0.0.0" panic-halt = "0.2.0" embedded-time = "0.12.1" diff --git a/examples/gpio-demo/build.rs b/examples/multicore/multicore-demo/dsp/build.rs similarity index 100% rename from examples/gpio-demo/build.rs rename to examples/multicore/multicore-demo/dsp/build.rs diff --git a/examples/multicore-demo/dsp/src/main.rs b/examples/multicore/multicore-demo/dsp/src/main.rs similarity index 100% rename from examples/multicore-demo/dsp/src/main.rs rename to examples/multicore/multicore-demo/dsp/src/main.rs diff --git a/examples/multicore-demo/mcu/Cargo.toml b/examples/multicore/multicore-demo/mcu/Cargo.toml similarity index 87% rename from examples/multicore-demo/mcu/Cargo.toml rename to examples/multicore/multicore-demo/mcu/Cargo.toml index 57af60f1d1ce1e860ce63b1e1da154cefb3e01d3..5f0bdd59f16c1a6ffd8150de1cbab20212c4b0e3 100644 --- a/examples/multicore-demo/mcu/Cargo.toml +++ b/examples/multicore/multicore-demo/mcu/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bl-soc = { path = "../../..", features = ["bl808"] } +bl-soc = { path = "../../../..", features = ["bl808"] } base-address = "0.0.0" panic-halt = "0.2.0" riscv = "0.10.1" diff --git a/examples/i2c-demo/build.rs b/examples/multicore/multicore-demo/mcu/build.rs similarity index 100% rename from examples/i2c-demo/build.rs rename to examples/multicore/multicore-demo/mcu/build.rs diff --git a/examples/multicore-demo/mcu/src/main.rs b/examples/multicore/multicore-demo/mcu/src/main.rs similarity index 100% rename from examples/multicore-demo/mcu/src/main.rs rename to examples/multicore/multicore-demo/mcu/src/main.rs diff --git a/examples/gpio-demo/Cargo.toml b/examples/peripherals/gpio-demo/Cargo.toml similarity index 88% rename from examples/gpio-demo/Cargo.toml rename to examples/peripherals/gpio-demo/Cargo.toml index c3e9cce988fac82180d1a9f069d1a15c8e73e6b2..7cc16039cff27990e92d7af2ef9317940c9774c6 100644 --- a/examples/gpio-demo/Cargo.toml +++ b/examples/peripherals/gpio-demo/Cargo.toml @@ -7,7 +7,7 @@ publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bl-soc = { path = "../..", features = ["bl808"] } +bl-soc = { path = "../../..", features = ["bl808"] } base-address = "0.0.0" panic-halt = "0.2.0" embedded-hal = "1.0.0-rc.1" diff --git a/examples/jtag-demo/build.rs b/examples/peripherals/gpio-demo/build.rs similarity index 100% rename from examples/jtag-demo/build.rs rename to examples/peripherals/gpio-demo/build.rs diff --git a/examples/gpio-demo/src/main.rs b/examples/peripherals/gpio-demo/src/main.rs similarity index 100% rename from examples/gpio-demo/src/main.rs rename to examples/peripherals/gpio-demo/src/main.rs diff --git a/examples/multicore-demo/dsp/Cargo.toml b/examples/peripherals/i2c-demo/Cargo.toml similarity index 92% rename from examples/multicore-demo/dsp/Cargo.toml rename to examples/peripherals/i2c-demo/Cargo.toml index f328e3252e02941352dbb696e2f29a93c813abec..2ebc51bb5b43eba4d63a99cd887bacaaa1b6e886 100644 --- a/examples/multicore-demo/dsp/Cargo.toml +++ b/examples/peripherals/i2c-demo/Cargo.toml @@ -1,7 +1,8 @@ [package] -name = "multicore-demo-dsp" +name = "i2c-demo" version = "0.1.0" edition = "2021" +publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/examples/lz4d-demo/build.rs b/examples/peripherals/i2c-demo/build.rs similarity index 100% rename from examples/lz4d-demo/build.rs rename to examples/peripherals/i2c-demo/build.rs diff --git a/examples/i2c-demo/src/main.rs b/examples/peripherals/i2c-demo/src/main.rs similarity index 100% rename from examples/i2c-demo/src/main.rs rename to examples/peripherals/i2c-demo/src/main.rs diff --git a/examples/jtag-demo/Cargo.toml b/examples/peripherals/jtag-demo/Cargo.toml similarity index 88% rename from examples/jtag-demo/Cargo.toml rename to examples/peripherals/jtag-demo/Cargo.toml index d8167894d2ee17a0d881b07ad17691ffecb0cd1c..dcc37860f699769f940b0745cff01a4c681cf9f5 100644 --- a/examples/jtag-demo/Cargo.toml +++ b/examples/peripherals/jtag-demo/Cargo.toml @@ -7,7 +7,7 @@ publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bl-soc = { path = "../..", features = ["bl808"] } +bl-soc = { path = "../../..", features = ["bl808"] } base-address = "0.0.0" panic-halt = "0.2.0" riscv = "0.10.1" diff --git a/examples/multicore-demo/dsp/build.rs b/examples/peripherals/jtag-demo/build.rs similarity index 100% rename from examples/multicore-demo/dsp/build.rs rename to examples/peripherals/jtag-demo/build.rs diff --git a/examples/jtag-demo/src/main.rs b/examples/peripherals/jtag-demo/src/main.rs similarity index 100% rename from examples/jtag-demo/src/main.rs rename to examples/peripherals/jtag-demo/src/main.rs diff --git a/examples/lz4d-demo/Cargo.toml b/examples/peripherals/lz4d-demo/Cargo.toml similarity index 89% rename from examples/lz4d-demo/Cargo.toml rename to examples/peripherals/lz4d-demo/Cargo.toml index 973d0f0829e10212d2daebe4fa610a5b6dcfe0a2..e0aa6271e306d4b90b738e1671bcb373e7a1ca2d 100644 --- a/examples/lz4d-demo/Cargo.toml +++ b/examples/peripherals/lz4d-demo/Cargo.toml @@ -7,7 +7,7 @@ publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bl-soc = { path = "../..", features = ["bl808"] } +bl-soc = { path = "../../..", features = ["bl808"] } base-address = "0.0.0" panic-halt = "0.2.0" embedded-hal = "1.0.0-rc.1" diff --git a/examples/multicore-demo/mcu/build.rs b/examples/peripherals/lz4d-demo/build.rs similarity index 100% rename from examples/multicore-demo/mcu/build.rs rename to examples/peripherals/lz4d-demo/build.rs diff --git a/examples/lz4d-demo/src/main.rs b/examples/peripherals/lz4d-demo/src/main.rs similarity index 100% rename from examples/lz4d-demo/src/main.rs rename to examples/peripherals/lz4d-demo/src/main.rs diff --git a/examples/lz4d-demo/src/text.lz4 b/examples/peripherals/lz4d-demo/src/text.lz4 similarity index 100% rename from examples/lz4d-demo/src/text.lz4 rename to examples/peripherals/lz4d-demo/src/text.lz4 diff --git a/examples/pwm-demo/Cargo.toml b/examples/peripherals/pwm-demo/Cargo.toml similarity index 88% rename from examples/pwm-demo/Cargo.toml rename to examples/peripherals/pwm-demo/Cargo.toml index 65c0be3ccdf46b3cf01da7320326546587a5a10f..087d28046a14d245953b8c5f068594d165423a3e 100644 --- a/examples/pwm-demo/Cargo.toml +++ b/examples/peripherals/pwm-demo/Cargo.toml @@ -7,7 +7,7 @@ publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bl-soc = { path = "../..", features = ["bl808"] } +bl-soc = { path = "../../..", features = ["bl808"] } base-address = "0.0.0" panic-halt = "0.2.0" embedded-time = "0.12.1" diff --git a/examples/pwm-demo/build.rs b/examples/peripherals/pwm-demo/build.rs similarity index 100% rename from examples/pwm-demo/build.rs rename to examples/peripherals/pwm-demo/build.rs diff --git a/examples/pwm-demo/src/main.rs b/examples/peripherals/pwm-demo/src/main.rs similarity index 100% rename from examples/pwm-demo/src/main.rs rename to examples/peripherals/pwm-demo/src/main.rs diff --git a/examples/spi-demo/Cargo.toml b/examples/peripherals/spi-demo/Cargo.toml similarity index 90% rename from examples/spi-demo/Cargo.toml rename to examples/peripherals/spi-demo/Cargo.toml index bbf848897bb46c41998c810284ae8f2540ce5969..200ab94abf8a91f13c5bd3decc810d65fdd1f89a 100644 --- a/examples/spi-demo/Cargo.toml +++ b/examples/peripherals/spi-demo/Cargo.toml @@ -7,7 +7,7 @@ publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bl-soc = { path = "../..", features = ["bl808"] } +bl-soc = { path = "../../..", features = ["bl808"] } base-address = "0.0.0" panic-halt = "0.2.0" embedded-time = "0.12.1" diff --git a/examples/spi-demo/README.md b/examples/peripherals/spi-demo/README.md similarity index 100% rename from examples/spi-demo/README.md rename to examples/peripherals/spi-demo/README.md diff --git a/examples/spi-demo/build.rs b/examples/peripherals/spi-demo/build.rs similarity index 100% rename from examples/spi-demo/build.rs rename to examples/peripherals/spi-demo/build.rs diff --git a/examples/spi-demo/src/ferris.raw b/examples/peripherals/spi-demo/src/ferris.raw similarity index 100% rename from examples/spi-demo/src/ferris.raw rename to examples/peripherals/spi-demo/src/ferris.raw diff --git a/examples/spi-demo/src/main.rs b/examples/peripherals/spi-demo/src/main.rs similarity index 100% rename from examples/spi-demo/src/main.rs rename to examples/peripherals/spi-demo/src/main.rs diff --git a/examples/uart-demo/Cargo.toml b/examples/peripherals/uart-demo/Cargo.toml similarity index 88% rename from examples/uart-demo/Cargo.toml rename to examples/peripherals/uart-demo/Cargo.toml index c04c0fb470fd94c575a0c9cfa668b8917393e229..af14ab1240674d32dd389de0096c8c6e26d5133c 100644 --- a/examples/uart-demo/Cargo.toml +++ b/examples/peripherals/uart-demo/Cargo.toml @@ -7,7 +7,7 @@ publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bl-soc = { path = "../..", features = ["bl808"] } +bl-soc = { path = "../../..", features = ["bl808"] } base-address = "0.0.0" panic-halt = "0.2.0" embedded-time = "0.12.1" diff --git a/examples/uart-demo/build.rs b/examples/peripherals/uart-demo/build.rs similarity index 100% rename from examples/uart-demo/build.rs rename to examples/peripherals/uart-demo/build.rs diff --git a/examples/uart-demo/src/main.rs b/examples/peripherals/uart-demo/src/main.rs similarity index 100% rename from examples/uart-demo/src/main.rs rename to examples/peripherals/uart-demo/src/main.rs