From 4761af7069ec64f229f0a7147d65dc1100f85291 Mon Sep 17 00:00:00 2001 From: Roy Feng Date: Wed, 10 Jan 2024 11:24:03 +0800 Subject: [PATCH] esp32[s2|s3] Following up update interrupt type constants. Following up the 'Espressif HAL fullly integration for ESP32s2/s3' changes in https://github.com/apache/nuttx/pull/11428 There are few missing interrupt type constants need update. So update them to avoid the build error. --- arch/xtensa/src/esp32s2/esp32s2_spi_slave.c | 2 +- arch/xtensa/src/esp32s3/esp32s3_spi_slave.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/xtensa/src/esp32s2/esp32s2_spi_slave.c b/arch/xtensa/src/esp32s2/esp32s2_spi_slave.c index 2af5df88be9f1..aa8fac1ccb110 100644 --- a/arch/xtensa/src/esp32s2/esp32s2_spi_slave.c +++ b/arch/xtensa/src/esp32s2/esp32s2_spi_slave.c @@ -1203,7 +1203,7 @@ static void spislave_initialize(struct spi_slave_ctrlr_s *ctrlr) spislave_dma_init(priv); #endif - esp32s2_gpioirqenable(ESP32S2_PIN2IRQ(config->cs_pin), GPIO_INTR_POSEDGE); + esp32s2_gpioirqenable(ESP32S2_PIN2IRQ(config->cs_pin), RISING); /* Force a transaction done interrupt. * This interrupt won't fire yet because we initialized the SPI interrupt diff --git a/arch/xtensa/src/esp32s3/esp32s3_spi_slave.c b/arch/xtensa/src/esp32s3/esp32s3_spi_slave.c index f231c7ba8d34a..cc875bffef479 100644 --- a/arch/xtensa/src/esp32s3/esp32s3_spi_slave.c +++ b/arch/xtensa/src/esp32s3/esp32s3_spi_slave.c @@ -1347,7 +1347,7 @@ static void spislave_initialize(struct spi_slave_ctrlr_s *ctrlr) spislave_dma_init(priv); #endif - esp32s3_gpioirqenable(ESP32S3_PIN2IRQ(config->cs_pin), GPIO_INTR_POSEDGE); + esp32s3_gpioirqenable(ESP32S3_PIN2IRQ(config->cs_pin), RISING); /* Force a transaction done interrupt. * This interrupt won't fire yet because we initialized the SPI interrupt