- Reworked the connection object and the IO system

- Reworked the support for TRICS
- Added a second generation motor
This commit is contained in:
koennecke
2009-02-03 08:05:39 +00:00
parent f6d595665e
commit 361ee9ebea
119 changed files with 16455 additions and 3674 deletions

View File

@ -59,9 +59,11 @@ static int MMCCHalt(void *pData){
for(i = 0; i < self->nSlaves; i++){
status = self->slaves[i]->Halt(self->slaveData[i]);
ReleaseCountLock(self->slaves[i]);
if(status != OKOK)
retVal = status;
}
ReleaseCountLock(pCount->pCountInt);
return retVal;
}
/*-------------------------------------------------------------------------*/
@ -77,9 +79,14 @@ static int MMCCStart(void *pData, SConnection *pCon)
}
assert(self);
if(!GetCountLock(pCount->pCountInt, pCon)){
return HWFault;
}
for(i = 0; i < self->nSlaves; i++){
self->slaves[i]->SetCountParameters(self->slaveData[i],
pCount->pDriv->fPreset, pCount->pDriv->eMode);
ReleaseCountLock(self->slaves[i]);
status = self->slaves[i]->StartCount(self->slaveData[i],pCon);
if(status != OKOK){
MMCCHalt(pData);