esp32-wasm-hal 0.1.0

A HAL for the ESP32 WASM environment
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! esp32-wasm delay implementation
//! 
// Copyright 2020 Ryan Kurte

use embedded_hal::blocking::delay::DelayMs;

use crate::runtime;
// Delay object abstract over WASM delay function
pub struct WasmDelay;

impl DelayMs<u32> for WasmDelay {
    
    fn delay_ms(&mut self, m: u32) {
        unsafe { runtime::delay_ms( m ) };
    }
}