1 parent f70873d commit b41a14aCopy full SHA for b41a14a
2 files changed
esp8266/esp_mphal.c
@@ -86,6 +86,10 @@ uint32_t mp_hal_ticks_ms(void) {
86
return system_get_time() / 1000;
87
}
88
89
+uint32_t mp_hal_ticks_us(void) {
90
+ return system_get_time();
91
+}
92
+
93
void mp_hal_delay_ms(uint32_t delay) {
94
mp_hal_delay_us(delay * 1000);
95
esp8266/esp_mphal.h
@@ -33,6 +33,7 @@ void ets_isr_mask(unsigned);
33
void mp_hal_init(void);
34
void mp_hal_feed_watchdog(void);
35
36
+uint32_t mp_hal_ticks_us(void);
37
void mp_hal_delay_us(uint32_t);
38
void mp_hal_set_interrupt_char(int c);
39
uint32_t mp_hal_get_cpu_freq(void);
0 commit comments