esp32, esp32s2: remove dependency of cache err int init on freertos

This commit is contained in:
Renz Christian Bagaporo
2020-02-16 18:20:58 +05:00
committed by Angus Gratton
parent 4d094eccca
commit 20d17e648b
3 changed files with 19 additions and 12 deletions

View File

@@ -23,16 +23,22 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include "freertos/FreeRTOS.h"
#include "esp_err.h"
#include "esp_intr_alloc.h"
#include "esp_attr.h"
#include "esp_intr_alloc.h"
#include "soc/dport_reg.h"
#include "hal/cpu_hal.h"
#include "esp32/dport_access.h"
#include "esp32/rom/ets_sys.h"
#include "sdkconfig.h"
void esp_cache_err_int_init(void)
{
uint32_t core_id = xPortGetCoreID();
uint32_t core_id = cpu_hal_get_core_id();
ESP_INTR_DISABLE(ETS_MEMACCESS_ERR_INUM);
// We do not register a handler for the interrupt because it is interrupt