projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7d2613
)
altos/attiny: Don't initialize the CS pin in the general SPI setup
author
Keith Packard
<keithp@keithp.com>
Wed, 31 Oct 2012 02:39:55 +0000
(19:39 -0700)
committer
Keith 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
patch
|
blob
|
history
diff --git
a/src/attiny/ao_spi_attiny.c
b/src/attiny/ao_spi_attiny.c
index 064876d78ba02cf010584abf0dffb358ba28fe17..3c4afb0277b79dcf3234eb4cc2a1f32eb6dfd997 100644
(file)
--- 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 */
}