riscv: Remove redundant riscv_interrupts.h header

This commit removes the riscv_interrupts.h header is it has become redundant. The previously
exposed API has been handled as follows:

- "riscv_interrupt_enable()" and "riscv_interrupt_disable()" have been removed. These functions
  were declarations only and never had any implementation.
- "riscv_global_interrupts_enable()" and "riscv_global_interrupts_disable()" renamed to
  "rv_utils_intr_global_enable()" and "rv_utils_intr_global_disable()" respectively and now
  placed in rv_utils.h
This commit is contained in:
Darian Leung
2022-07-26 22:07:58 +08:00
parent c3d425d21f
commit 0c8ac295c5
13 changed files with 26 additions and 77 deletions

View File

@@ -11,8 +11,7 @@
#include "esp_attr.h"
#include "esp_efuse.h"
#include "esp_log.h"
#include "riscv/riscv_interrupts.h"
#include "riscv/interrupt.h"
#include "riscv/rv_utils.h"
#include "esp_rom_uart.h"
#include "soc/gpio_reg.h"
#include "soc/rtc_cntl_reg.h"
@@ -36,7 +35,7 @@
void IRAM_ATTR esp_restart_noos(void)
{
// Disable interrupts
riscv_global_interrupts_disable();
rv_utils_intr_global_disable();
// Enable RTC watchdog for 1 second
wdt_hal_context_t rtc_wdt_ctx;
wdt_hal_init(&rtc_wdt_ctx, WDT_RWDT, 0, false);