mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-28 12:50:53 +00:00

* Make esp-config's structs de-serialization friendly * Simplify ConfigOption's constructor * CHANGELOG.md * Make sure `esp-wifi/build.rs` formats correctly * Typo * Run tests, again * Tests
20 lines
494 B
Rust
20 lines
494 B
Rust
use std::{env, path::PathBuf};
|
|
|
|
use esp_config::{ConfigOption, Validator, generate_config};
|
|
|
|
fn main() {
|
|
let out = PathBuf::from(env::var_os("OUT_DIR").unwrap());
|
|
println!("cargo:rustc-link-search={}", out.display());
|
|
|
|
// emit config
|
|
generate_config(
|
|
"esp_ieee802154",
|
|
&[
|
|
ConfigOption::new("rx_queue_size", "Size of the RX queue in frames", 50)
|
|
.constraint(Validator::PositiveInteger),
|
|
],
|
|
true,
|
|
true,
|
|
);
|
|
}
|