- 12 Jan, 2015 1 commit
-
-
Peter Zumbruch authored
git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@413 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
- 22 May, 2013 4 commits
-
-
Peter Zumbruch authored
with dummy structure git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@412 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
- changed default of globalDebugSystemMask - added - canBusStoredState - canBusStateResetInterval_seconds - adopted printDebug_p pointer - main - moved watchdog back again main while loop - removed watchdog incarnations counter from main loop git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@410 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
- global - refactoring/renaming of strings and string arrays - adding syntax alternatives string and commandImplementation flags - command renaming and reordering - added new dummy commands CMD5...CMD8 - printDebug - added option to skip default line and file printout - NEW: determineAndHandleResetSource - split from showResetSource - fills global reset source - for WDOG reset: - increases watchdogIncarnationsCounter - else resets to 0 - added enum resetSources git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@409 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
- refactoring - renaming of error messages - added canBusMode strings - canSendMessage - implemented check on canBusMode (current status) before sending - in case of an error (disabled, bus off, error passive) subsequent transmit are ignored until bus mode has been reset to "undefined" - which happens automatically by the can timer mechanism within canBusStateResetInterval_seconds with a granularity of the calculated canTimerInterval given by CANTCON - new: canSetCanTimer - enables to set the can timer clock cycle either - by setting the prescaler [0,0xff] Tclk = 1/F_CPU x 8 x (prescaler + 1) - or by - setting the time in seconds - canInit - added canSetCanTimer - setting canBusStoreState - canIsGeneralStatusErrorAndAcknowledge moved as inline to can.h - canIsMObErrorAndAcknowledge moved as inline to can.h - ISR(CANIT_vect) - setting canBusStoreState for BOFFIT interrupt - ISR(OVRIT_vect) - reset error canBusStoredStates every canBusStateResetInterval_seconds with the granularity canBusStoredState of the calculated canTimerInterval given by CANTCON to canBusStoredState to undefined to allow for recovery - defined macro CAN_BUS_STATE_RESET_INTERVAL_SECONDS = 60. - enum: - bus state - timer units - new inline canGetCurrentBusModeStatus git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@408 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
- 21 May, 2013 4 commits
-
-
Peter Zumbruch authored
- added global for canBusStoredState refactored and canBusStateResetInterval_seconds git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@407 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@406 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
commands TODO: HELP <mode> git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@405 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@404 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
- 15 May, 2013 11 commits
-
-
Peter Zumbruch authored
- replaced by rule errorType * 100 + errorIndex - refactored xxx_errorCode to xxxErrorCode - xxx_init flags: - moved from main.c to api.c - changed to uint16_t - cosmetics git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@403 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
- replaced by rule errorType * 100 + errorIndex - refactored xxx_errorCode to xxxErrorCode - xxx_init flags: - moved from main.c to api.c - changed to uint16_t - cosmetics git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@402 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
- replaced by rule errorType * 100 + errorIndex - refactored xxx_errorCode to xxxErrorCode - xxx_init flags: - moved from main.c to api.c - changed to uint16_t - cosmetics git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@401 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@400 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
'-' removed git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@399 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@398 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
- changed assignment of canErrorCode - enabled TIMER OVERRUN interrupt - default timer t_CANTIM 13.4s - canGetGeneralStatusError refactored to canShowGeneralStatusError - canShowGeneralStatusError: - extended to care also for CANGIT states - canIsGeneralStatusError refactored to canIsGeneralStatusErrorAndAcknowledge - canIsGeneralStatusErrorAndAcknowledge: - added CANGIT - including interrupt reset - added 2 new canStates: - GENERAL_BXOK - GENERAL_OVRTIM - canGetMobError refactored to canShowMobError - ISR (CANIT_vect): - added CANGIT - removed CANGIT |= 0; statement - ISR (OVRIT_vect): - added - setting flag - TODO: missing prompt action git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@397 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
- cosmetics / cleaning up - moved twi specific definitions/declarations to twi_master.c/h - corrected deprecated prog_char - added canTimerOverrun to init function - changed canErrorCode assignments - added getMaximumStringArrayLength_P - added getMaximumStringArrayLength git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@396 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
- added "periodic debug verbose" debug level - changed former "periodic debug" to the latter level to allow not so often, but periodic events - moved watch dog part out of while loop - removed "interrupt enable/disable" debug statements - CAN section: - moved cli/sei and canReady = IDLE section out of the switch statements - 2 new states introduced: GENERAL_BXOK, GENERAL_OVRTIM - added global canCurrentGeneralInterrupRegister - actions: just debug informations - new CAN timer overrun section - added global canTimerOverrun - only action: flag reset - TODO add async actions - refactored can(_)ErrorCode git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@395 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@394 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@393 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
- 14 May, 2013 6 commits
-
-
Peter Zumbruch authored
git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@392 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@391 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
replacing fixed length right aligned section of debg by generic string/space generation git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@390 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
added canTimerOverrun variable added twi_error vars git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@389 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@388 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
removed spaces in names git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@387 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
- 10 May, 2013 2 commits
-
-
Peter Zumbruch authored
- added canState_UNKNOWN case - added ATOMIC_BLOCK(ATOMIC_RESTORESTATE) into timer0AScheduler to learn about ATOMIC_BLOCK - cleaned up some obsolete commented commands - removed/changed Debug statements git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@386 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
added massive TODO warnings git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@385 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
- 06 May, 2013 1 commit
-
-
Peter Zumbruch authored
git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@382 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
- 26 Apr, 2013 11 commits
-
-
Peter Zumbruch authored
to show changes: - commented out any debug output - added comments - RXOK: - acknowledge/clear RXOK after data readout added 0xFF mask - enable any previous communication (receive) mode instead of only setting bit CONMOB1 - general error: - request communication abort - disable communication git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@381 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
- added many debug statements - canSendMessage: - before enabling any communication mode, disable any possible - canWaitForCanSendMessageFinished: - instead of disabling only transmission any communication is stopped - canWaitForCanSendRemoteTransmissionRequestMessageFinished: - q.v. canWaitForCanSendMessageFinished - canGetMObError: - bug fix: instead of choosing an unsigned variable use a signed - canIsMObErrorAndAcknowledge: - added docu from manual - combined flag reset into one statement - ISR(CANIT_vect): - commented out any debug output - added comments - RXOK: - acknowledge/clear RXOK after data readout added 0xFF mask - enable any previous communication (receive) mode instead of only setting bit CONMOB1 - general error: - request communication abort - disable communication - moved can relevant section from api into can code - refactoring of names - moved ISR(CANIT_vect) to can.c - introduced enums for communication states git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@380 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
- refactoring of names - added init, startMessage fcn - added SYST to responseKeys - added INIT command to keep debug settings during a reset - modified RSET reset fcn to use watchdog to reset the system - move string copy from main into Process_Uart_Event - moved ISR(CANIT_vect) to can.c - moved initialization of variables from main.c into Initialization() fcn - added sei/cli to Initialization fcn git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@379 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
- refactoring of names - remoed obsolete/unused macro definitions of PP_NARG... - added init, startMessage fcn - added SYST to responseKeys - added INIT command to keep debug settings during a reset git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@378 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
- moved can relevant section from api into can code - refactoring of names git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@377 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
- added watchdogIncarnationsCounter, which survives a reset, to tell how often a watchdog triggered reset has happened, reset by PORF (power on reset) -moved several initial variable assignments to the Initialization function - introduced the startMessage function, which combines the messages given at startup into one routine - added disabled, global watchdog section to be implemented - uart section: - moved string copy into Process_Uart_Event fcn - can section: - introduced enums to replace hardcoded state numbers - replaced if structure by switch statement - relay section: - uncommented cli/sei statements and separated the 2 engines git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@376 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
moved assignment of flag in front of the possible cases git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@375 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
replaced hard coded RECV and PARA by call to createReceiveHeader and moved this part in front and out of the 2 possible cases. git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@374 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
- the watchdog induced reincarnations of the system - the reason/source of the last reset of the system git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@373 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
- the watchdog induced reincarnations of the system - the reason/source of the last reset of the system git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@372 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-
Peter Zumbruch authored
removed obsolete OWON cosmetics git-svn-id: https://subversion.gsi.de/epics/trunk/hadcon/API-Slave@371 50339f28-a4cd-11e1-ab1f-8360dde1fe65
-