diff options
Diffstat (limited to 'esp8266/esp_mphal.c')
| -rw-r--r-- | esp8266/esp_mphal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/esp8266/esp_mphal.c b/esp8266/esp_mphal.c index effed04dd..748c90292 100644 --- a/esp8266/esp_mphal.c +++ b/esp8266/esp_mphal.c @@ -55,6 +55,10 @@ void mp_hal_delay_us(uint32_t us) { } } +uint32_t mp_hal_get_cpu_freq(void) { + return system_get_cpu_freq() * 1000000; +} + int mp_hal_stdin_rx_chr(void) { for (;;) { int c = ringbuf_get(&input_buf); |
