Add comment for Receive Time-out IF in SPI HAL

pull/4974/head
ccli8 2017-07-05 14:43:27 +08:00 committed by adbridge
parent b8ed5579e9
commit abd8dee9e5
1 changed files with 1 additions and 1 deletions

View File

@ -542,7 +542,7 @@ static uint32_t spi_event_check(spi_t *obj)
// Receive Time-Out // Receive Time-Out
if (spi_base->STATUS & SPI_STATUS_RXTOIF_Msk) { if (spi_base->STATUS & SPI_STATUS_RXTOIF_Msk) {
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 // Transmit FIFO Under-Run
if (spi_base->STATUS & SPI_STATUS_TXUFIF_Msk) { if (spi_base->STATUS & SPI_STATUS_TXUFIF_Msk) {