From abd8dee9e57daeda0166070b02370de006beca38 Mon Sep 17 00:00:00 2001 From: ccli8 Date: Wed, 5 Jul 2017 14:43:27 +0800 Subject: [PATCH] Add comment for Receive Time-out IF in SPI HAL --- targets/TARGET_NUVOTON/TARGET_M480/spi_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/TARGET_NUVOTON/TARGET_M480/spi_api.c b/targets/TARGET_NUVOTON/TARGET_M480/spi_api.c index 7c30d37f9b..603aed78a6 100644 --- a/targets/TARGET_NUVOTON/TARGET_M480/spi_api.c +++ b/targets/TARGET_NUVOTON/TARGET_M480/spi_api.c @@ -542,7 +542,7 @@ static uint32_t spi_event_check(spi_t *obj) // Receive Time-Out if (spi_base->STATUS & SPI_STATUS_RXTOIF_Msk) { spi_base->STATUS = SPI_STATUS_RXTOIF_Msk; - //event |= SPI_EVENT_ERROR; + // Not using this IF. Just clear it. } // Transmit FIFO Under-Run if (spi_base->STATUS & SPI_STATUS_TXUFIF_Msk) {