diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-11-01 16:03:24 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-11-01 16:03:24 +0000 |
commit | d0cc4f2406f3932312de7908afeb33daf0acc720 (patch) | |
tree | 95f63e5db30d7fc98da1939ec2e25ee374cf6591 /ports | |
parent | e7e0e2d2d3869cd43b296941e91f4ed6ecbb160e (diff) | |
download | ChibiOS-d0cc4f2406f3932312de7908afeb33daf0acc720.tar.gz ChibiOS-d0cc4f2406f3932312de7908afeb33daf0acc720.tar.bz2 ChibiOS-d0cc4f2406f3932312de7908afeb33daf0acc720.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@81 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'ports')
-rw-r--r-- | ports/ARM7-LPC214x/GCC/lpc214x_ssp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ports/ARM7-LPC214x/GCC/lpc214x_ssp.c b/ports/ARM7-LPC214x/GCC/lpc214x_ssp.c index 5224127cf..ab0c4f141 100644 --- a/ports/ARM7-LPC214x/GCC/lpc214x_ssp.c +++ b/ports/ARM7-LPC214x/GCC/lpc214x_ssp.c @@ -32,15 +32,14 @@ void sspAcquireBus(void) { chSemWait(&me);
#endif
IO0CLR = 1 << 20;
-
}
void sspReleaseBus(void) {
+ IO0SET = 1 << 20;
#ifdef SSP_USE_MUTEX
chSemSignal(&me);
#endif
- IO0SET = 1 << 20;
}
/*
@@ -103,7 +102,7 @@ void InitSSP(void) { PCONP = (PCONP & PCALL) | PCSPI1;
/* Clock = PCLK / 2 (fastest). */
- SetSSP(2, CR0_DSS8BIT | CR0_FRFSPI | CR0_CLOCKRATE(0), CR1_LBM);
+ SetSSP(2, CR0_DSS8BIT | CR0_FRFSPI | CR0_CLOCKRATE(0), 0);
#ifdef SSP_USE_MUTEX
chSemInit(&me, 1);
|