esp32_wasm_hal/
runtime.rs

1
2// Declare JS functions to call
3#[link(wasm_import_module = "env")]
4extern {
5    // Delay using ESP32 thread sleep
6    pub fn delay_ms(m: u32);
7
8    // Write out to ESP32 logs
9    pub fn log_write(v: *const u8, l: i32);
10
11}
12