20 lines
509 B
Rust
20 lines
509 B
Rust
|
use std::error::Error;
|
||
|
|
||
|
// use esp_build::assert_unique_used_features;
|
||
|
|
||
|
fn main() -> Result<(), Box<dyn Error>> {
|
||
|
// assert_unique_used_features!("esp32c6");
|
||
|
|
||
|
// NOTE: update when adding new device support!
|
||
|
// Determine the name of the configured device:
|
||
|
let device_name = "esp32c6";
|
||
|
|
||
|
// Define all necessary configuration symbols for the configured device:
|
||
|
println!("cargo:rustc-cfg={}", device_name);
|
||
|
|
||
|
println!("cargo:rustc-link-arg=-Tlinkall.x");
|
||
|
|
||
|
// // Done!
|
||
|
Ok(())
|
||
|
}
|