Skip to content

Commit cd415cf

Browse files
authored
Merge pull request #11708 from ABOSTM/FIX_SPI_COMPILATION_WARNING
TARGET_STM: remove warning and fix typo on SPI
2 parents 42cb19b + bca9d95 commit cd415cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

targets/TARGET_STM/stm_spi_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ void spi_format(spi_t *obj, int bits, int mode, int slave)
303303
{
304304
struct spi_s *spiobj = SPI_S(obj);
305305
SPI_HandleTypeDef *handle = &(spiobj->handle);
306-
PinMode pull = 0;
306+
PinMode pull = PullNone;
307307

308308
DEBUG_PRINTF("spi_format, bits:%d, mode:%d, slave?:%d\r\n", bits, mode, slave);
309309

@@ -759,7 +759,7 @@ inline uint32_t spi_irq_handler_asynch(spi_t *obj)
759759
// else we're done
760760
event = SPI_EVENT_COMPLETE | SPI_EVENT_INTERNAL_TRANSFER_COMPLETE;
761761
}
762-
// enable the interrupt
762+
// disable the interrupt
763763
NVIC_DisableIRQ(obj->spi.spiIRQ);
764764
NVIC_ClearPendingIRQ(obj->spi.spiIRQ);
765765
}

0 commit comments

Comments
 (0)