From b63e897268bdbaa679cc68b6c9586ba4d5520b45 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 10 Jul 2024 15:18:55 +1000 Subject: [PATCH] Move the SPI interrupt alloc to the second core We're a bit close to the line on core0 allocs, so this helps balance things out a bit. --- src/drivers/spi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/spi.cpp b/src/drivers/spi.cpp index 632fe89f..40487197 100644 --- a/src/drivers/spi.cpp +++ b/src/drivers/spi.cpp @@ -41,7 +41,7 @@ esp_err_t init_spi(void) { // manages its own use of DMA-capable memory. .max_transfer_sz = 4096, .flags = SPICOMMON_BUSFLAG_MASTER | SPICOMMON_BUSFLAG_IOMUX_PINS, - .isr_cpu_id = ESP_INTR_CPU_AFFINITY_0, + .isr_cpu_id = ESP_INTR_CPU_AFFINITY_1, .intr_flags = ESP_INTR_FLAG_LOWMED | ESP_INTR_FLAG_IRAM, };