Only init crosscore when FreeRTOS runs in multicore mode, add warnings that cross_int calls are private.

This commit is contained in:
Jeroen Domburg
2016-10-27 16:50:28 +08:00
parent b14faabfda
commit 68f39c1ed9
3 changed files with 11 additions and 2 deletions

View File

@@ -49,8 +49,8 @@ static void esp_crosscore_isr(void *arg) {
//A pointer to the correct reason array item is passed to this ISR.
volatile uint32_t *myReason=arg;
#else
//Does not work yet, the interrupt code needs work to understand two separate interrupt and argument
//tables...
//The previous line does not work yet, the interrupt code needs work to understand two separate interrupt and argument
//tables... this is a valid but slightly less optimal replacement.
volatile uint32_t *myReason=&reason[xPortGetCoreID()];
#endif
//Clear the interrupt first.