From d33b99a39429fade490307947fc4e10e7428f580 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 1 Nov 2007 09:04:09 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@73 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- ports/ARM7-LPC214x/GCC/lpc214x_ssp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ports/ARM7-LPC214x/GCC/lpc214x_ssp.c b/ports/ARM7-LPC214x/GCC/lpc214x_ssp.c index 857f87ae4..c3188152d 100644 --- a/ports/ARM7-LPC214x/GCC/lpc214x_ssp.c +++ b/ports/ARM7-LPC214x/GCC/lpc214x_ssp.c @@ -31,6 +31,8 @@ void sspAcquireBus(void) { #ifdef SSP_USE_MUTEX chSemWait(&me); #endif + IO0CLR = 1 << 20; + } void sspReleaseBus(void) { @@ -38,6 +40,7 @@ void sspReleaseBus(void) { #ifdef SSP_USE_MUTEX chSemSignal(&me); #endif + IO0SET = 1 << 20; } /* @@ -83,8 +86,8 @@ void sspRW(BYTE8 *in, BYTE8 *out, t_size n) { * SSP setup. */ void SetSSP(int cpsr, int cr0, int cr1) { - SSP *ssp = SSPBase; + SSP *ssp = SSPBase; ssp->SSP_CR1 = 0; ssp->SSP_CR0 = cr0; ssp->SSP_CPSR = cpsr;