mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 04:04:31 +02:00
crosscore_int: use _ISR version of portENTER/EXIT_CRITICAL in ISR
This commit is contained in:
committed by
Mahavir Jain
parent
5d3b26e8d0
commit
f65870566a
@@ -61,10 +61,10 @@ static void IRAM_ATTR esp_crosscore_isr(void *arg) {
|
|||||||
DPORT_WRITE_PERI_REG(DPORT_CPU_INTR_FROM_CPU_1_REG, 0);
|
DPORT_WRITE_PERI_REG(DPORT_CPU_INTR_FROM_CPU_1_REG, 0);
|
||||||
}
|
}
|
||||||
//Grab the reason and clear it.
|
//Grab the reason and clear it.
|
||||||
portENTER_CRITICAL(&reason_spinlock);
|
portENTER_CRITICAL_ISR(&reason_spinlock);
|
||||||
my_reason_val=*my_reason;
|
my_reason_val=*my_reason;
|
||||||
*my_reason=0;
|
*my_reason=0;
|
||||||
portEXIT_CRITICAL(&reason_spinlock);
|
portEXIT_CRITICAL_ISR(&reason_spinlock);
|
||||||
|
|
||||||
//Check what we need to do.
|
//Check what we need to do.
|
||||||
if (my_reason_val & REASON_YIELD) {
|
if (my_reason_val & REASON_YIELD) {
|
||||||
|
Reference in New Issue
Block a user