[NUC472/M453] Add comment for Receive Time-out IF in SPI HAL

pull/4832/head
ccli8 2017-07-06 09:59:58 +08:00
parent c7fcd071e9
commit 8092c3611b
2 changed files with 2 additions and 2 deletions

View File

@ -573,7 +573,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) {

View File

@ -566,7 +566,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) {