From e0ad8b5b5e1b4c7a9ffba9d25f3c32ce708c3ec5 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 19 May 2013 20:26:07 -0700 Subject: [PATCH] altos/lpc: Configuring wrong pin for SPI1 MOSI Was setting configuration for PIO1_21 instead of PIO0_21. Signed-off-by: Keith Packard --- src/lpc/ao_spi_lpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2