Skip to content

Commit

Permalink
add memory-x feature to ch32-hal
Browse files Browse the repository at this point in the history
  • Loading branch information
ExplodingWaffle authored and andelf committed Oct 30, 2024
1 parent 6f62090 commit 4e47c04
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ license = "MIT OR Apache-2.0"

[dependencies]
ch32-metapac = { features = [
"memory-x",
"rt",
], git = "https://github.com/ch32-rs/ch32-metapac", rev = "43066e18cf51106dff448f679dfff368a41431d7" }

Expand Down Expand Up @@ -65,6 +64,8 @@ embassy = [
"dep:embassy-time",
]
defmt = ["dep:defmt"]
memory-x = ["ch32-metapac/memory-x"]


# Features starting with `_` are for internal use only. They're not intended
# to be enabled by other crates, and are not covered by semver guarantees.
Expand Down
3 changes: 2 additions & 1 deletion examples/ch32l103/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ edition = "2021"
[dependencies]
ch32-hal = { path = "../../", features = [
"ch32l103c8t6",
"memory-x",
"embassy",
"rt",
"time-driver-tim2"
"time-driver-tim2",
], default-features = false }
embassy-executor = { version = "0.6.0", features = [
"integrated-timers",
Expand Down
1 change: 1 addition & 0 deletions examples/ch32v003/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ edition = "2021"
[dependencies]
ch32-hal = { path = "../../", features = [
"ch32v003f4u6",
"memory-x",
"embassy",
"time-driver-tim2",
"rt",
Expand Down
1 change: 1 addition & 0 deletions examples/ch32v103/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ edition = "2021"
[dependencies]
ch32-hal = { path = "../../", features = [
"ch32v103r8t6",
"memory-x",
"rt",
"time-driver-tim2",
] }
Expand Down
1 change: 1 addition & 0 deletions examples/ch32v203/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ edition = "2021"
[dependencies]
ch32-hal = { path = "../../", features = [
"ch32v203g6u6",
"memory-x",
"embassy",
"rt",
"time-driver-tim2",
Expand Down
1 change: 1 addition & 0 deletions examples/ch32v208/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ edition = "2021"
[dependencies]
ch32-hal = { path = "../../", features = [
"ch32v208wbu6",
"memory-x",
"embassy",
"rt",
], default-features = false }
Expand Down
7 changes: 6 additions & 1 deletion examples/ch32v305/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ version = "0.1.0"
edition = "2021"

[dependencies]
ch32-hal = { path = "../../", features = ["ch32v305fbp6", "embassy", "rt"] }
ch32-hal = { path = "../../", features = [
"ch32v305fbp6",
"memory-x",
"embassy",
"rt",
] }
embassy-executor = { version = "0.6.0", features = [
"integrated-timers",
"arch-riscv32",
Expand Down
1 change: 1 addition & 0 deletions examples/ch32v307/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ edition = "2021"
[dependencies]
ch32-hal = { path = "../../", features = [
"ch32v307vct6",
"memory-x",
"embassy",
"rt",
"highcode",
Expand Down
7 changes: 6 additions & 1 deletion examples/ch32x035/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ version = "0.1.0"
edition = "2021"

[dependencies]
ch32-hal = { path = "../../", features = ["ch32x035f7p6", "embassy", "rt"] }
ch32-hal = { path = "../../", features = [
"ch32x035f7p6",
"memory-x",
"embassy",
"rt",
] }
embassy-executor = { version = "0.6.0", features = [
"integrated-timers",
"arch-riscv32",
Expand Down
1 change: 1 addition & 0 deletions examples/ch641/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ edition = "2021"
[dependencies]
ch32-hal = { path = "../../", features = [
"ch641",
"memory-x",
"embassy",
"time-driver-tim2",
"rt",
Expand Down

0 comments on commit 4e47c04

Please sign in to comment.