gustavonihei commented on code in PR #6604:
URL: https://github.com/apache/incubator-nuttx/pull/6604#discussion_r919346819
##########
arch/xtensa/src/esp32s3/esp32s3_spi.c:
##########
@@ -1142,6 +1441,37 @@ static void esp32s3_spi_deinit(struct spi_dev_s *dev)
priv->nbits = 0;
}
+/****************************************************************************
+ * Name: esp32s3_spi_interrupt
+ *
+ * Description:
+ * Common SPI DMA interrupt handler.
+ *
+ * Input Parameters:
+ * irq - Number of the IRQ that generated the interrupt
+ * context - Interrupt register state save info
+ * arg - SPI controller private data
+ *
+ * Returned Value:
+ * Standard interrupt return value.
+ *
+ ****************************************************************************/
+
+#ifdef CONFIG_ESP32S3_SPI2_DMA
+static int esp32s3_spi_interrupt(int irq, void *context, void *arg)
+{
+ struct esp32s3_spi_priv_s *priv = (struct esp32s3_spi_priv_s *)arg;
+
+ /* Write 1 to clear interrupt bit */
+
+ esp32s3_spi_set_regbits(SPI_DMA_INT_CLR_REG(priv->config->id),
+ SPI_TRANS_DONE_INT_RAW_M);
Review Comment:
```suggestion
SPI_TRANS_DONE_INT_CLR_M);
```
Wrong field.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]