altos/lpc: Configuring wrong pin for SPI1 MOSI
authorKeith Packard <keithp@keithp.com>
Mon, 20 May 2013 03:26:07 +0000 (20:26 -0700)
committerKeith 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

index 12d448723cdb81cb722c64ea06df140622ada329..ff107e40dd0339fb01eed124f30c282116e1bf7a 100644 (file)
@@ -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