Review: Small improvements

Fixes suggested by Gustavo and Petro
This commit is contained in:
Alan Carvalho de Assis 2022-07-13 10:22:41 -03:00 committed by Gustavo Henrique Nihei
parent 1e03a70258
commit 7d3eefbdce
2 changed files with 6 additions and 6 deletions

View File

@ -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 <nuttx/config.h>
#include <stdbool.h>
#include <stdint.h>

View File

@ -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;