Commit b41a14a4 authored by Damien George's avatar Damien George Committed by Paul Sokolovsky
Browse files

esp8266: Add mp_hal_delay_us function.

parent f70873db
......@@ -86,6 +86,10 @@ uint32_t mp_hal_ticks_ms(void) {
return system_get_time() / 1000;
}
uint32_t mp_hal_ticks_us(void) {
return system_get_time();
}
void mp_hal_delay_ms(uint32_t delay) {
mp_hal_delay_us(delay * 1000);
}
......
......@@ -33,6 +33,7 @@ void ets_isr_mask(unsigned);
void mp_hal_init(void);
void mp_hal_feed_watchdog(void);
uint32_t mp_hal_ticks_us(void);
void mp_hal_delay_us(uint32_t);
void mp_hal_set_interrupt_char(int c);
uint32_t mp_hal_get_cpu_freq(void);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment