From e8a4a00a5bb333d4ee9601d53242a82dfe0372c2 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 30 Oct 2012 19:39:55 -0700 Subject: [PATCH] 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 --- src/attiny/ao_spi_attiny.c | 1 - 1 file changed, 1 deletion(-) 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 */ } -- 2.30.2