esp_rom: extract common ets apis into esp_rom_sys.h

This commit is contained in:
morris
2020-07-21 13:07:34 +08:00
parent 35007bd443
commit 2917651478
140 changed files with 490 additions and 410 deletions

View File

@@ -42,6 +42,7 @@
#include "freertos/FreeRTOS.h"
#include "driver/periph_ctrl.h"
#include "esp_rom_gpio.h"
#include "esp_rom_sys.h"
#include "sdkconfig.h"
/* Select which RMT and PCNT channels, and GPIO to use */
@@ -127,7 +128,7 @@ void ref_clock_init()
pcnt_ll_counter_resume(s_pcnt.dev, REF_CLOCK_PCNT_UNIT);
pcnt_ll_counter_clear(s_pcnt.dev, REF_CLOCK_PCNT_UNIT);
ets_delay_us(10000);
esp_rom_delay_us(10000);
// Enable interrupt
s_milliseconds = 0;