projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9bb088
)
altos/lpc: Configuring wrong pin for SPI1 MOSI
author
Keith Packard
<keithp@keithp.com>
Mon, 20 May 2013 03:26:07 +0000
(20:26 -0700)
committer
Keith Packard
<keithp@keithp.com>
Mon, 20 May 2013 03:39:19 +0000
(20:39 -0700)
Was setting configuration for PIO1_21 instead of PIO0_21.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/lpc/ao_spi_lpc.c
patch
|
blob
|
history
diff --git
a/src/lpc/ao_spi_lpc.c
b/src/lpc/ao_spi_lpc.c
index 12d448723cdb81cb722c64ea06df140622ada329..ff107e40dd0339fb01eed124f30c282116e1bf7a 100644
(file)
--- a/
src/lpc/ao_spi_lpc.c
+++ b/
src/lpc/ao_spi_lpc.c
@@
-182,7
+182,7
@@
ao_spi_init(void)
#endif
#if SPI_MOSI1_P0_21
- lpc_ioconf.pio
1
_21 = ao_lpc_alternate(LPC_IOCONF_FUNC_PIO0_21_MOSI1);
+ lpc_ioconf.pio
0
_21 = ao_lpc_alternate(LPC_IOCONF_FUNC_PIO0_21_MOSI1);
#define HAS_MOSI1
#endif
#if SPI_MOSI1_P1_22