Skip to content

Commit

Permalink
esp32[s2|s3] Following up update interrupt type constants.
Browse files Browse the repository at this point in the history
Following up the 'Espressif HAL fullly integration for ESP32s2/s3'
changes in #11428
There are few missing interrupt type constants need update. So
update them to avoid the build error.
  • Loading branch information
royfengsss authored and xiaoxiang781216 committed Jan 10, 2024
1 parent b3dcebc commit 4761af7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/xtensa/src/esp32s2/esp32s2_spi_slave.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion arch/xtensa/src/esp32s3/esp32s3_spi_slave.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4761af7

Please sign in to comment.