Commit 4d85ce34 authored by Peter Zumbruch's avatar Peter Zumbruch
Browse files

main.c: added initial values to ready states, can.c: moved debug levels

parent 4ea40009
......@@ -1589,7 +1589,7 @@ ISR(OVRIT_vect)
* canBusStoredState to undefined
* to allow for recovery */
printDebug_p(debugLevelEventDebugVerbose, debugSystemCAN, __LINE__, filename,
printDebug_p(debugLevelPeriodicDebug, debugSystemCAN, __LINE__, filename,
PSTR("bus state %S"), (const char*) (pgm_read_word( &(canBusModes[canBusStoredState]))));
switch (canBusStoredState)
......@@ -1601,7 +1601,7 @@ ISR(OVRIT_vect)
break;
default:
canPeriodicCanTimerCanBusStateReset();
printDebug_p(debugLevelEventDebug, debugSystemCAN, __LINE__, filename, PSTR("bus state %S"),
printDebug_p(debugLevelPeriodicDebug, debugSystemCAN, __LINE__, filename, PSTR("bus state %S"),
(const char*) (pgm_read_word( &(canBusModes[canBusStoredState]))));
break;
}
......
......@@ -111,12 +111,12 @@ uint8_t usercommand;
char* ptr_setParameter[MAX_PARAMETER];
volatile unsigned char timer0Ready;/*variable for Timer0 Interrupt*/
volatile unsigned char timer1Ready;/*variable for Timer1 Interrupt*/
volatile unsigned char timer0AReady;/*variable for Timer0 Output Compare A Interrupt*/
volatile unsigned char timer0ASchedulerReady;/*variable for Timer0 Output Compare A Interrupt*/
volatile unsigned char timer0Ready = 0;/*variable for Timer0 Interrupt*/
volatile unsigned char timer1Ready = 0;/*variable for Timer1 Interrupt*/
volatile unsigned char timer0AReady = 0;/*variable for Timer0 Output Compare A Interrupt*/
volatile unsigned char timer0ASchedulerReady = 0;/*variable for Timer0 Output Compare A Interrupt*/
volatile unsigned char canReady; /*variable for can interrupt*/
volatile unsigned char canReady = 0; /*variable for can interrupt*/
volatile unsigned char canTimerOverrun; /*variable for can timer overrun interrupt*/
volatile unsigned char canCurrentGeneralStatus;/*variable for can interrupt*/
volatile unsigned char canCurrentGeneralInterruptRegister;/*variable for can interrupt*/
......@@ -126,7 +126,7 @@ volatile unsigned char canCurrentReceiveErrorCounter;/*variable for can error ha
char canStoreString[MAX_LENGTH_CAN_DATA];
volatile unsigned char uartReady;/*variable for Uart interrupt*/
volatile unsigned char uartReady = 0;/*variable for Uart interrupt*/
char uartString[BUFFER_SIZE]; /* variable for storage received a complete string via UART */
char decrypt_uartString[BUFFER_SIZE];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment