From d645ea222d121fef0d82be309f917ea856eef030 Mon Sep 17 00:00:00 2001 From: Hierophect Date: Tue, 7 Jan 2020 13:25:24 -0500 Subject: [PATCH] Text fixes for consistency --- ports/stm32f4/common-hal/busio/SPI.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ports/stm32f4/common-hal/busio/SPI.c b/ports/stm32f4/common-hal/busio/SPI.c index fe20416833..d1218c9abb 100644 --- a/ports/stm32f4/common-hal/busio/SPI.c +++ b/ports/stm32f4/common-hal/busio/SPI.c @@ -84,15 +84,15 @@ void common_hal_busio_spi_construct(busio_spi_obj_t *self, uint8_t miso_len = sizeof(mcu_spi_miso_list)/sizeof(*mcu_spi_miso_list); bool spi_taken = false; - //sck is not optional. MOSI and MISO are + //SCK is not optional. MOSI and MISO are for(uint i=0; ihandle.Instance = SPIx; self->handle.Init.Mode = SPI_MODE_MASTER; - // Direction change only required for RX only, see RefMan RM0090:884 + // Direction change only required for RX-only, see RefMan RM0090:884 self->handle.Init.Direction = (self->mosi == NULL) ? SPI_CR1_RXONLY : SPI_DIRECTION_2LINES; self->handle.Init.DataSize = SPI_DATASIZE_8BIT; self->handle.Init.CLKPolarity = SPI_POLARITY_LOW;