From 7cecd6e73dd19f6fb19f2a6325908730259f59d4 Mon Sep 17 00:00:00 2001 From: BIITER Date: Wed, 27 Apr 2011 03:02:03 +0200 Subject: [PATCH] spi patch SCK --- firmware/src/ssp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/src/ssp.c b/firmware/src/ssp.c index 41c9732..be90ccb 100644 --- a/firmware/src/ssp.c +++ b/firmware/src/ssp.c @@ -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;