From 7d3eefbdcea4ec05219385c87a7a1dad66715e3a Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis Date: Wed, 13 Jul 2022 10:22:41 -0300 Subject: [PATCH] Review: Small improvements Fixes suggested by Gustavo and Petro --- arch/xtensa/src/esp32s3/esp32s3_dma.h | 6 +++--- arch/xtensa/src/esp32s3/esp32s3_spi.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/xtensa/src/esp32s3/esp32s3_dma.h b/arch/xtensa/src/esp32s3/esp32s3_dma.h index ac7baaa8d0..913e744587 100644 --- a/arch/xtensa/src/esp32s3/esp32s3_dma.h +++ b/arch/xtensa/src/esp32s3/esp32s3_dma.h @@ -18,13 +18,13 @@ * ****************************************************************************/ +#ifndef __ARCH_XTENSA_SRC_ESP32S3_ESP32S3_DMA_H +#define __ARCH_XTENSA_SRC_ESP32S3_ESP32S3_DMA_H + /**************************************************************************** * Included Files ****************************************************************************/ -#ifndef __ARCH_XTENSA_SRC_ESP32S3_ESP32S3_DMA_H -#define __ARCH_XTENSA_SRC_ESP32S3_ESP32S3_DMA_H - #include #include #include diff --git a/arch/xtensa/src/esp32s3/esp32s3_spi.c b/arch/xtensa/src/esp32s3/esp32s3_spi.c index c796ff6431..7328cb4211 100644 --- a/arch/xtensa/src/esp32s3/esp32s3_spi.c +++ b/arch/xtensa/src/esp32s3/esp32s3_spi.c @@ -855,7 +855,7 @@ static void esp32s3_spi_dma_exchange(struct esp32s3_spi_priv_s *priv, } esp32s3_spi_set_regbits(SPI_DMA_INT_CLR_REG(priv->config->id), - SPI_TRANS_DONE_INT_RAW_M); + SPI_TRANS_DONE_INT_CLR_M); esp32s3_spi_set_regbits(SPI_DMA_INT_ENA_REG(priv->config->id), SPI_TRANS_DONE_INT_ENA_M); @@ -889,7 +889,7 @@ static void esp32s3_spi_dma_exchange(struct esp32s3_spi_priv_s *priv, /* Enable SPI DMA RX */ esp32s3_spi_set_regbits(SPI_DMA_CONF_REG(priv->config->id), - SPI_DMA_RX_ENA_M); + SPI_DMA_RX_ENA_M); esp32s3_dma_setup(channel, false, dma_rxdesc, SPI_DMA_DESC_NUM, rp, bytes); @@ -1465,7 +1465,7 @@ static int esp32s3_spi_interrupt(int irq, void *context, void *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); + SPI_TRANS_DONE_INT_CLR_M); nxsem_post(&priv->sem_isr); return 0;