feat: generate project from esp-idf-template.

This commit is contained in:
2022-04-17 15:26:32 +08:00
commit 20b22c07b3
7 changed files with 89 additions and 0 deletions

9
src/main.rs Normal file
View File

@@ -0,0 +1,9 @@
use esp_idf_sys as _; // If using the `binstart` feature of `esp-idf-sys`, always keep this module imported
fn main() {
// Temporary. Will disappear once ESP-IDF 4.4 is released, but for now it is necessary to call this function once,
// or else some patches to the runtime implemented by esp-idf-sys might not link properly.
esp_idf_sys::link_patches();
println!("Hello, world!");
}