Skip to content

Commit 8092c36

Browse files
committed
[NUC472/M453] Add comment for Receive Time-out IF in SPI HAL
1 parent c7fcd07 commit 8092c36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

targets/TARGET_NUVOTON/TARGET_M451/spi_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ static uint32_t spi_event_check(spi_t *obj)
573573
// Receive Time-Out
574574
if (spi_base->STATUS & SPI_STATUS_RXTOIF_Msk) {
575575
spi_base->STATUS = SPI_STATUS_RXTOIF_Msk;
576-
//event |= SPI_EVENT_ERROR;
576+
// Not using this IF. Just clear it.
577577
}
578578
// Transmit FIFO Under-Run
579579
if (spi_base->STATUS & SPI_STATUS_TXUFIF_Msk) {

targets/TARGET_NUVOTON/TARGET_NUC472/spi_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ static uint32_t spi_event_check(spi_t *obj)
566566
// Receive Time-Out
567567
if (spi_base->STATUS & SPI_STATUS_RXTOIF_Msk) {
568568
spi_base->STATUS = SPI_STATUS_RXTOIF_Msk;
569-
//event |= SPI_EVENT_ERROR;
569+
// Not using this IF. Just clear it.
570570
}
571571
// Transmit FIFO Under-Run
572572
if (spi_base->STATUS & SPI_STATUS_TXUFIF_Msk) {

0 commit comments

Comments
 (0)