esp32: Prefix ROM routines with esp32_rom_

Also provide their prototypes in `soc.h`.  This should help
readability, since some ROM functions, with their names as provided by
Espressif, have sometimes the same prefix as Zephyr APIs.

Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
This commit is contained in:
Leandro Pereira 2017-09-15 16:52:36 -07:00 committed by Anas Nashif
commit 5f22dab17a
5 changed files with 45 additions and 13 deletions

View file

@ -5,10 +5,10 @@
*/
/* Include esp-idf headers first to avoid redefining BIT() macro */
#include <rom/ets_sys.h>
#include <soc/rtc_cntl_reg.h>
#include <soc/timer_group_reg.h>
#include <soc.h>
#include <string.h>
#include <watchdog.h>
#include <device.h>
@ -212,7 +212,8 @@ static int wdt_esp32_init(struct device *dev)
* located in xtensa_vectors.S.
*/
irq_disable(CONFIG_WDT_ESP32_IRQ);
intr_matrix_set(0, ETS_TG1_WDT_LEVEL_INTR_SOURCE, CONFIG_WDT_ESP32_IRQ);
esp32_rom_intr_matrix_set(0, ETS_TG1_WDT_LEVEL_INTR_SOURCE,
CONFIG_WDT_ESP32_IRQ);
return 0;
}