From: Keith Packard Date: Wed, 31 Oct 2012 02:39:55 +0000 (-0700) Subject: altos/attiny: Don't initialize the CS pin in the general SPI setup X-Git-Tag: 1.1.9.2~8 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=e8a4a00a5bb333d4ee9601d53242a82dfe0372c2 altos/attiny: Don't initialize the CS pin in the general SPI setup Let the CS pin be configured by the driver, which can set the correct value before enabling the output. Signed-off-by: Keith Packard --- diff --git a/src/attiny/ao_spi_attiny.c b/src/attiny/ao_spi_attiny.c index 064876d7..3c4afb02 100644 --- a/src/attiny/ao_spi_attiny.c +++ b/src/attiny/ao_spi_attiny.c @@ -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 */ }