Subversion Repositories FlightCtrl

Rev

Rev 544 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 544 Rev 553
Line 96... Line 96...
96
    PORTB = 0x00;
96
    PORTB = 0x00;
97
    for(timer = 0; timer < 1000; timer++); // verzögern
97
    for(timer = 0; timer < 1000; timer++); // verzögern
98
    if(PINB & 0x01) PlatinenVersion = 11; else PlatinenVersion = 10;
98
    if(PINB & 0x01) PlatinenVersion = 11; else PlatinenVersion = 10;
99
        // Salvo 9.12.2007 PC6 als Ausgang
99
        // Salvo 9.12.2007 PC6 als Ausgang
100
        //   DDRC  = 0x81; // SCL
100
        //   DDRC  = 0x81; // SCL
101
    DDRC  = 0xC1; // SCL und PC6 als Ausgang
101
    DDRC  = 0xCD; // SCL  und PC2,PC3, PC6 als Ausgang
102
    PORTC = 0xff; // Pullup SDA
102
    PORTC = 0xff; // Pullup SDA
103
    DDRB  = 0x1B; // LEDs und Druckoffset
103
    DDRB  = 0x1B; // LEDs und Druckoffset
104
    PORTB = 0x01; // LED_Rot
104
    PORTB = 0x01; // LED_Rot
105
    DDRD  = 0x3E; // Speaker & TXD & J3 J4 J5
105
    DDRD  = 0x3E; // Speaker & TXD & J3 J4 J5
106
    DDRD  |=0x80; // J7
106
    DDRD  |=0x80; // J7
Line 200... Line 200...
200
//PORTD |= 0x08;
200
//PORTD |= 0x08;
201
            MotorRegler();  
201
            MotorRegler();  
202
//PORTD &= ~0x08;
202
//PORTD &= ~0x08;
203
            SendMotorData();
203
            SendMotorData();
204
            ROT_OFF;
204
            ROT_OFF;
-
 
205
 
205
            if(PcZugriff) PcZugriff--;
206
            if(PcZugriff) PcZugriff--;
206
             else
207
             else
207
              {
208
              {
208
               DubWiseKeys[0] = 0;
209
               DubWiseKeys[0] = 0;
209
               DubWiseKeys[1] = 0;
210
               DubWiseKeys[1] = 0;