spi patch SCK

This commit is contained in:
BIITER 2011-04-27 03:02:03 +02:00
parent 1271571cb0
commit 7cecd6e73d

View file

@ -46,8 +46,8 @@ LPC_IOCON->SWCLK_PIO0_10 |= 0x02;>/* SSP CLK */
#endif
// This register is used to select a pin among three possible choices for the SSP SCK function.
LPC_IOCON->SCKLOC = 1; // Selects SCK function for pin PIO2_11/SCK
LPC_IOCON->PIO2_11 = 1;
LPC_IOCON->SCKLOC = 0; // Selects SCK function for pin PIO2_11/SCK
LPC_IOCON->PIO0_10 = 2;
// set SSEL as GPIO that the master has total control of the sequence
LPC_IOCON->PIO0_2 &= ~0x07;