Index: firmware/FSC/src/timer.c
===================================================================
--- firmware/FSC/src/timer.c	(revision 17631)
+++ firmware/FSC/src/timer.c	(revision 17632)
@@ -1,28 +1,24 @@
-#include "typedefs.h"
+#include "application.h"
 #include <avr/interrupt.h>
 
-
-	volatile U16 milisec = 0;
-	volatile U32 sec = 0;
+// We use the global volatile register!
+// gVolReg.time_sec and 
 
 void timer_init() {
-	// TIMER2 is used as local clock:
-	// configure timer 2
-	TCCR2 = (1<<WGM21); // CTC Modus
-	TCCR2 |= (1<<CS21) | (1<<CS20); // Prescaler 64 --> counts up every 8us
-	OCR2 = 125-1; 					// --> output compare interrupt occurs every 125 x 8us = 1ms
-	// Compare Interrupt erlauben
-	TIMSK |= (1<<OCIE2);
-	
+    // TIMER2 is used as local clock:
+    // configure timer 2
+    TCCR2 = (1<<WGM21); // CTC Modus
+    TCCR2 |= (1<<CS21) | (1<<CS20); // Prescaler 64 --> counts up every 8us
+    OCR2 = 125-1; 					// --> output compare interrupt occurs every 125 x 8us = 1ms
+    // Compare Interrupt erlauben
+    TIMSK |= (1<<OCIE2);
 }
 
-ISR (TIMER2_COMP_vect)
-{
-	if (milisec < 999)
- 		++milisec;
-	else {
-		milisec = 0;
-		sec++;
-	}
-		
+ISR (TIMER2_COMP_vect) {
+    if (gVolReg.time_ms < 999)
+        ++gVolReg.time_ms;
+    else {
+        gVolReg.time_ms = 0;
+        gVolReg.time_sec++;
+    }
 }
Index: firmware/FSC/src/timer.h
===================================================================
--- firmware/FSC/src/timer.h	(revision 17631)
+++ firmware/FSC/src/timer.h	(revision 17632)
@@ -2,7 +2,4 @@
 #define __TIMER_H
 
-	extern volatile U16 milisec;
-	extern volatile U32 sec;
-	
 void timer_init();
 ISR (TIMER2_COMP_vect);
