You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/01/10 17:55:01 UTC

(nuttx) branch master updated: esp32[s2|s3] Following up update interrupt type constants.

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 4761af7069 esp32[s2|s3] Following up update interrupt type constants.
4761af7069 is described below

commit 4761af7069ec64f229f0a7147d65dc1100f85291
Author: Roy Feng <ro...@sony.com>
AuthorDate: Wed Jan 10 11:24:03 2024 +0800

    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 2af5df88be..aa8fac1ccb 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 f231c7ba8d..cc875bffef 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