altos/lpc: Configuring wrong pin for SPI1 MOSI
[fw/altos] / 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