From 83c1e4e8ca684f555cba252efd3882f811d8e154 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 9 Apr 2017 12:54:57 -0700 Subject: [PATCH] altos: Document a few more SPI mode bits in VGA driver Just comment changes Signed-off-by: Keith Packard --- src/drivers/ao_vga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/ao_vga.c b/src/drivers/ao_vga.c index 2d05d522..909e3109 100644 --- a/src/drivers/ao_vga.c +++ b/src/drivers/ao_vga.c @@ -139,13 +139,13 @@ ao_vga_init(void) (0 << STM_SPI_CR1_CRCEN) | /* CRC disabled */ (0 << STM_SPI_CR1_CRCNEXT) | (1 << STM_SPI_CR1_DFF) | - (0 << STM_SPI_CR1_RXONLY) | + (0 << STM_SPI_CR1_RXONLY) | /* transmit, not receive */ (0 << STM_SPI_CR1_SSM) | /* Software SS handling */ (1 << STM_SPI_CR1_SSI) | /* ... */ (1 << STM_SPI_CR1_LSBFIRST) | /* Little endian */ (1 << STM_SPI_CR1_SPE) | /* Enable SPI unit */ (0 << STM_SPI_CR1_BR) | /* baud rate to pclk/2 */ - (0 << STM_SPI_CR1_MSTR) | + (0 << STM_SPI_CR1_MSTR) | /* slave */ (0 << STM_SPI_CR1_CPOL) | /* Format 0 */ (0 << STM_SPI_CR1_CPHA)); stm_spi1.cr2 = ((0 << STM_SPI_CR2_TXEIE) | -- 2.30.2