static void resetSystem() { #ifdef INOVA DPRINT(0,"AParserAA"); AParserAA(); /* PARALLEL_CHANS */ freeSorter(); DPRINT(0,"AupdtAA"); AupdtAA(); DPRINT(0,"ShandlerAA"); ShandlerAA(); DPRINT(0,"fifoStufferAA"); /* fifoStufferAA(pTheFifoObject); */ /* stmAdcOvldClear(pTheStmObject); */ /* stmReset(pTheStmObject); */ DPRINT(0,"Disable ADC Intrps"); /* adcItrpDisable(pTheAdcObject,ADC_ALLITRPS); */ /* adcReset(pTheAdcObject); */ /* reset fifo Object not to use parallel channels */ /* fifoClearPChanId(pTheFifoObject); */ /* Reset Safe State again after tasks restarted */ /* call to reset2SafeState removed; in each case where resetSystem */ /* is called, reset2SafeState is called immediately previously. */ /* it maybe safe here, but we have to flip flop priorities with the Stuffer */ DPRINT2(0,"resetSystem: tid: 0x%lx, priority: %d\n",pHandlerTid,pHandlerPriority); /* taskPrioritySet(pHandlerTid,(FIFO_STUFFER_PRIORITY+1)); setlksample(); set2khz(); taskPrioritySet(pHandlerTid,pHandlerPriority); */ #endif return; }
int main() { //data* sorter = createNewSorter((void*)callback, (void*)reader, (void*)orderer); freeSorter(sortAndCallback(createNewSorter((void*)callback, (void*)reader, (void*)orderer))); return 0; }