altos: Document a few more SPI mode bits in VGA driver
authorKeith Packard <keithp@keithp.com>
Sun, 9 Apr 2017 19:54:57 +0000 (12:54 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 9 Apr 2017 19:54:57 +0000 (12:54 -0700)
Just comment changes

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_vga.c

index 2d05d522d46d24042cabd38d2ba2cb56ff90e2c8..909e31098004a25879949d69992da20b7b7525ea 100644 (file)
@@ -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) |