Skip to content
This repository was archived by the owner on Feb 26, 2022. It is now read-only.

Commit 91d203c

Browse files
authored
Merge pull request #5 from esp-rs/new-svd2rust-target
Use xtensa-lx target for code generation
2 parents 54cbcb0 + e7e6220 commit 91d203c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@ license = "MIT OR Apache-2.0"
1515
[dependencies]
1616
bare-metal = "0.2"
1717
vcell = "0.1"
18+
xtensa-lx = "0.3.0"
19+
xtensa-lx-rt = { version = "0.5.0", optional = true }
20+
21+
[features]
22+
default=[]
23+
rt=["xtensa-lx-rt"]

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ patch:
1212
mv svd/$(BASE).patched svd/$(OUTPUT)
1313

1414
generate:
15-
svd2rust --target none -i svd/$(OUTPUT)
15+
svd2rust --target xtensa-lx -i svd/$(OUTPUT)
1616

1717
form:
1818
form -i lib.rs -o src/
@@ -23,4 +23,4 @@ fmt:
2323

2424
build:
2525
cargo clean
26-
cargo build
26+
cargo build

0 commit comments

Comments
 (0)