trennfix/sw: Register variables, restructuring, whatever
[eisenbahn.git] / trennfix / sw / config / trennfix_attiny25.h
index a995437f657c687d282c913c62e64c2773f8150f..c733c71765b5adf574ce49c72ab2be376b03b9cd 100644 (file)
@@ -5,7 +5,8 @@
 
 #define PIN_LED   _PIN(PORTB, PORTB2)
 #define PIN_SENSE _PIN(PORTB, PORTB4)
-#define PIN_DRIVE _PIN(PORTB, PORTB3)
+//#define PIN_DRIVE _PIN(PORTB, PORTB3)
+#define PIN_DRIVE PIN_LED
 #define PIN_BTN   _PIN(PORTB, PB1)
 
 #define BTN_PRESSED (!PINVAL(PIN_BTN))
@@ -74,8 +75,8 @@ static void __attribute__((unused)) trigger(void)
  */
 
 #define MM_SENSE (!PINVAL(PIN_SENSE))
-#define MM_TSTART_FAST ({TCNT0 = 0; GTCCR |= 1; OCR0A = 110; TCCR0B = 2;})
-#define MM_TSTART_SLOW ({TCNT0 = 0; GTCCR |= 1; OCR0A = 220; TCCR0B = 2;})
+#define MM_TSTART_FAST ({TCNT0 = 0; GTCCR |= 1; OCR0A = 120; TCCR0B = 2;})
+#define MM_TSTART_SLOW ({TCNT0 = 0; GTCCR |= 1; OCR0A = 230; TCCR0B = 2;})
 #define MM_TSTOP ({TCCR0B = 0;})
 #define MM_TIMER_INT_VECT TIMER0_COMPA_vect