git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@73 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2007-11-01 09:04:09 +00:00
parent 72103d892d
commit d33b99a394
1 changed files with 4 additions and 1 deletions

View File

@ -31,6 +31,8 @@ void sspAcquireBus(void) {
#ifdef SSP_USE_MUTEX #ifdef SSP_USE_MUTEX
chSemWait(&me); chSemWait(&me);
#endif #endif
IO0CLR = 1 << 20;
} }
void sspReleaseBus(void) { void sspReleaseBus(void) {
@ -38,6 +40,7 @@ void sspReleaseBus(void) {
#ifdef SSP_USE_MUTEX #ifdef SSP_USE_MUTEX
chSemSignal(&me); chSemSignal(&me);
#endif #endif
IO0SET = 1 << 20;
} }
/* /*
@ -83,8 +86,8 @@ void sspRW(BYTE8 *in, BYTE8 *out, t_size n) {
* SSP setup. * SSP setup.
*/ */
void SetSSP(int cpsr, int cr0, int cr1) { void SetSSP(int cpsr, int cr0, int cr1) {
SSP *ssp = SSPBase;
SSP *ssp = SSPBase;
ssp->SSP_CR1 = 0; ssp->SSP_CR1 = 0;
ssp->SSP_CR0 = cr0; ssp->SSP_CR0 = cr0;
ssp->SSP_CPSR = cpsr; ssp->SSP_CPSR = cpsr;