Subversion Repositories FlightCtrl

Rev

Rev 1021 | Rev 1038 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1021 Rev 1036
Line 129... Line 129...
129
      if(PINB & 0x02) PlatinenVersion = 20;
129
      if(PINB & 0x02) PlatinenVersion = 20;
130
       else           PlatinenVersion = 10;
130
       else           PlatinenVersion = 10;
131
     }
131
     }
Line 132... Line 132...
132
 
132
 
-
 
133
    DDRC  = 0x81; // SCL
133
    DDRC  = 0x81; // SCL
134
    DDRC  |=0x40; // HEF4017 Reset
134
    PORTC = 0xff; // Pullup SDA
135
    PORTC = 0xff; // Pullup SDA
135
    DDRB  = 0x1B; // LEDs und Druckoffset
136
    DDRB  = 0x1B; // LEDs und Druckoffset
136
    PORTB = 0x01; // LED_Rot
137
    PORTB = 0x01; // LED_Rot
137
    DDRD  = 0x3E; // Speaker & TXD & J3 J4 J5
138
    DDRD  = 0x3E; // Speaker & TXD & J3 J4 J5
138
    DDRD  |=0x80; // J7
-
 
139
   
139
    DDRD  |=0x80; // J7 -> Servo signal
Line 140... Line 140...
140
        PORTD = 0xF7; // LED
140
        PORTD = 0x77; // LED
141
 
141
 
142
   
142
   
Line 160... Line 160...
160
        sei();
160
        sei();
Line 161... Line 161...
161
 
161
 
162
    VersionInfo.Hauptversion = VERSION_HAUPTVERSION;
162
    VersionInfo.Hauptversion = VERSION_HAUPTVERSION;
163
    VersionInfo.Nebenversion = VERSION_NEBENVERSION;
163
    VersionInfo.Nebenversion = VERSION_NEBENVERSION;
-
 
164
    VersionInfo.PCKompatibel = VERSION_KOMPATIBEL;
164
    VersionInfo.PCKompatibel = VERSION_KOMPATIBEL;
165
    VersionInfo.NaviKompatibel = NAVI_KOMPATIBEL;
165
    VersionInfo.Hardware = 1; // FlightCtrl
166
    VersionInfo.Hardware = 1; // FlightCtrl
Line 166... Line 167...
166
        VersionInfo.Patch        = VERSION_INDEX;
167
        VersionInfo.Patch        = VERSION_INDEX;
167
   
168