-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create the
esp-metadata
package, update esp-hal
build script to u…
…se it
- Loading branch information
1 parent
e4ea62a
commit f6b7b99
Showing
14 changed files
with
273 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ exclude = [ | |
"esp-hal-procmacros", | ||
"esp-hal-smartled", | ||
"esp-lp-hal", | ||
"esp-metadata", | ||
"esp-riscv-rt", | ||
"examples", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[package] | ||
name = "esp-metadata" | ||
version = "0.1.0" | ||
edition = "2021" | ||
rust-version = "1.60.0" | ||
description = "Metadata for Espressif devices" | ||
repository = "https://github.com/esp-rs/esp-hal" | ||
license = "MIT OR Apache-2.0" | ||
|
||
[dependencies] | ||
basic-toml = "0.1.8" | ||
lazy_static = "1.4.0" | ||
serde = { version = "1.0.197", features = ["derive"] } | ||
strum = { version = "0.26.1", features = ["derive"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# esp-metadata | ||
|
||
[![Crates.io](https://img.shields.io/crates/v/esp-metadata?color=C96329&logo=Rust&style=flat-square)](https://crates.io/crates/esp-metadata) | ||
[![docs.rs](https://img.shields.io/docsrs/esp-metadata?color=C96329&logo=rust&style=flat-square)](https://docs.rs/esp-metadata) | ||
![MSRV](https://img.shields.io/badge/MSRV-1.60-blue?style=flat-square) | ||
![Crates.io](https://img.shields.io/crates/l/esp-metadata?style=flat-square) | ||
|
||
Metadata for Espressif devices, primarily intended for use in build scripts. | ||
|
||
## [Documentation](https://docs.rs/crate/esp-metadata) | ||
|
||
## Minimum Supported Rust Version (MSRV) | ||
|
||
This crate is guaranteed to compile on stable Rust 1.60 and up. It _might_ | ||
compile with older versions but that may change in any new patch release. | ||
|
||
## License | ||
|
||
Licensed under either of: | ||
|
||
- Apache License, Version 2.0 ([LICENSE-APACHE](../LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) | ||
- MIT license ([LICENSE-MIT](../LICENSE-MIT) or http://opensource.org/licenses/MIT) | ||
|
||
at your option. | ||
|
||
### Contribution | ||
|
||
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in | ||
the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without | ||
any additional terms or conditions. |
1 change: 1 addition & 0 deletions
1
esp-hal/devices/esp32/device.toml → esp-metadata/devices/esp32.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[device] | ||
name = "esp32" | ||
arch = "xtensa" | ||
cores = "multi_core" | ||
|
||
|
3 changes: 2 additions & 1 deletion
3
esp-hal/devices/esp32c2/device.toml → esp-metadata/devices/esp32c2.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[device] | ||
arch = "riscv" | ||
name = "esp32c2" | ||
arch = "riscv" | ||
cores = "single_core" | ||
|
||
peripherals = [ | ||
|
3 changes: 2 additions & 1 deletion
3
esp-hal/devices/esp32c3/device.toml → esp-metadata/devices/esp32c3.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[device] | ||
arch = "riscv" | ||
name = "esp32c3" | ||
arch = "riscv" | ||
cores = "single_core" | ||
|
||
peripherals = [ | ||
|
3 changes: 2 additions & 1 deletion
3
esp-hal/devices/esp32c6/device.toml → esp-metadata/devices/esp32c6.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[device] | ||
arch = "riscv" | ||
name = "esp32c6" | ||
arch = "riscv" | ||
cores = "single_core" | ||
|
||
peripherals = [ | ||
|
3 changes: 2 additions & 1 deletion
3
esp-hal/devices/esp32h2/device.toml → esp-metadata/devices/esp32h2.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[device] | ||
arch = "riscv" | ||
name = "esp32h2" | ||
arch = "riscv" | ||
cores = "single_core" | ||
|
||
peripherals = [ | ||
|
3 changes: 2 additions & 1 deletion
3
esp-hal/devices/esp32p4/device.toml → esp-metadata/devices/esp32p4.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[device] | ||
arch = "riscv" | ||
name = "esp32p4" | ||
arch = "riscv" | ||
cores = "multi_core" | ||
|
||
peripherals = [ | ||
|
1 change: 1 addition & 0 deletions
1
esp-hal/devices/esp32s2/device.toml → esp-metadata/devices/esp32s2.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[device] | ||
name = "esp32s2" | ||
arch = "xtensa" | ||
cores = "single_core" | ||
|
||
|
3 changes: 2 additions & 1 deletion
3
esp-hal/devices/esp32s3/device.toml → esp-metadata/devices/esp32s3.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[device] | ||
arch = "xtensa" | ||
name = "esp32s3" | ||
arch = "xtensa" | ||
cores = "multi_core" | ||
|
||
peripherals = [ | ||
|
Oops, something went wrong.