diff options
author | Keith Packard <keithp@keithp.com> | 2013-05-19 20:26:07 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-05-19 20:39:19 -0700 |
commit | e0ad8b5b5e1b4c7a9ffba9d25f3c32ce708c3ec5 (patch) | |
tree | 4352cf1cce4befff87c7c979f051816388ef8fca | |
parent | b9bb088a36fd351809f4c378356327ffa663c974 (diff) |
altos/lpc: Configuring wrong pin for SPI1 MOSI
Was setting configuration for PIO1_21 instead of PIO0_21.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | src/lpc/ao_spi_lpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpc/ao_spi_lpc.c b/src/lpc/ao_spi_lpc.c index 12d44872..ff107e40 100644 --- 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.pio1_21 = ao_lpc_alternate(LPC_IOCONF_FUNC_PIO0_21_MOSI1); + lpc_ioconf.pio0_21 = ao_lpc_alternate(LPC_IOCONF_FUNC_PIO0_21_MOSI1); #define HAS_MOSI1 #endif #if SPI_MOSI1_P1_22 |