mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Calling esp_intr_noniram_[en|dis]able twice is an error, so abort instead of doing an assert which disappears in non-debug mode
This commit is contained in:
parent
0bfe08578b
commit
11a994d5d8
@ -691,7 +691,7 @@ void esp_intr_noniram_disable()
|
||||
int oldint;
|
||||
int cpu=xPortGetCoreID();
|
||||
int intmask=~non_iram_int_mask[cpu];
|
||||
assert(non_iram_int_disabled_flag[cpu]==false);
|
||||
if (non_iram_int_disabled_flag[cpu]) abort();
|
||||
non_iram_int_disabled_flag[cpu]=true;
|
||||
asm volatile (
|
||||
"movi %0,0\n"
|
||||
@ -709,7 +709,7 @@ void esp_intr_noniram_enable()
|
||||
{
|
||||
int cpu=xPortGetCoreID();
|
||||
int intmask=non_iram_int_disabled[cpu];
|
||||
assert(non_iram_int_disabled_flag[cpu]==true);
|
||||
if (!non_iram_int_disabled_flag[cpu]) abort();
|
||||
non_iram_int_disabled_flag[cpu]=false;
|
||||
asm volatile (
|
||||
"movi a3,0\n"
|
||||
|
Loading…
Reference in New Issue
Block a user