altos/attiny: Don't initialize the CS pin in the general SPI setup
authorKeith Packard <keithp@keithp.com>
Wed, 31 Oct 2012 02:39:55 +0000 (19:39 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 31 Oct 2012 02:39:55 +0000 (19:39 -0700)
Let the CS pin be configured by the driver, which can set the correct
value before enabling the output.

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

index 064876d78ba02cf010584abf0dffb358ba28fe17..3c4afb0277b79dcf3234eb4cc2a1f32eb6dfd997 100644 (file)
@@ -119,5 +119,4 @@ ao_spi_init(void)
        SPI_DIR &= ~(1 << DDB0);        /* DI */
        SPI_DIR |= (1 << DDB1);         /* DO */
        SPI_DIR |= (1 << DDB2);         /* SCLK */
-       SPI_DIR |= (1 << DDB3);         /* CS */
 }