1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/esp_common: fix thread_arch.c for ESP32-S2

This commit is contained in:
Gunar Schorcht 2022-08-27 16:59:11 +02:00
parent b96aac842b
commit d130f8cc8c

View File

@ -286,7 +286,7 @@ void IRAM_ATTR thread_yield_higher(void)
ets_soft_int_type = ETS_SOFT_INT_YIELD;
WSR(BIT(ETS_SOFT_INUM), interrupt);
critical_exit();
#elif defined(CPU_FAM_ESP32)
#elif defined(DPORT_CPU_INTR_FROM_CPU_0_REG)
/* generate the software interrupt to switch the context */
DPORT_WRITE_PERI_REG(DPORT_CPU_INTR_FROM_CPU_0_REG, DPORT_CPU_INTR_FROM_CPU_0);
#else