- 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

@ -46,8 +46,7 @@ static int UpdateTask(void *pData){
}
}
/*--------------------------------------------------------------------*/
static int CountCallback(int iEvent, void *pEventData, void *pUser,
commandContext cc){
static int CountCallback(int iEvent, void *pEventData, void *pUser){
pNXupdate self = NULL;
SConnection *pCon = NULL;
@ -258,7 +257,6 @@ int UpdateFactory(SConnection *pCon, SicsInterp *pSics, void *pData,
char pBueffel[256];
pNXupdate self = NULL;
CommandList *pCom = NULL;
commandContext comCon;
if(argc < 3){
SCWrite(pCon,"ERROR: insuffcient number of argument to UpdateFactory",
@ -311,11 +309,9 @@ int UpdateFactory(SConnection *pCon, SicsInterp *pSics, void *pData,
/*
register callbacks
*/
comCon.transID = 0;
strncpy(comCon.deviceID,"internal",SCDEVIDLEN);
RegisterCallback(pCall,comCon,COUNTSTART,CountCallback,
RegisterCallback(pCall,COUNTSTART,CountCallback,
self,NULL);
RegisterCallback(pCall,comCon,COUNTEND,CountCallback,
RegisterCallback(pCall,COUNTEND,CountCallback,
self,NULL);
AddCommand(pSics,argv[1],UpdateAction,KillUpdate,self);