Subversion Repositories FlightCtrl

Rev

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

Rev 855 Rev 918
Line 113... Line 113...
113
 
113
 
114
        //unsigned int timer2 = 0;
114
        //unsigned int timer2 = 0;
115
    DDRB  = 0x00;
115
    DDRB  = 0x00;
116
    PORTB = 0x00;
116
    PORTB = 0x00;
-
 
117
    for(timer = 0; timer < 1000; timer++); // verzögern
-
 
118
    if(PINB & 0x01)
117
    for(timer = 0; timer < 1000; timer++); // verzögern
119
     {
-
 
120
      if(PINB & 0x02) PlatinenVersion = 12;
-
 
121
       else           PlatinenVersion = 11;
-
 
122
     }
118
    if(PINB & 0x01) PlatinenVersion = 11; else PlatinenVersion = 10;
123
    else PlatinenVersion = 10;
119
    DDRC  = 0x81; // SCL
124
    DDRC  = 0x81; // SCL
120
    PORTC = 0xff; // Pullup SDA
125
    PORTC = 0xff; // Pullup SDA
121
    DDRB  = 0x1B; // LEDs und Druckoffset
126
    DDRB  = 0x1B; // LEDs und Druckoffset
122
    PORTB = 0x01; // LED_Rot
127
    PORTB = 0x01; // LED_Rot
Line 149... Line 154...
149
    VersionInfo.Nebenversion = VERSION_NEBENVERSION;
154
    VersionInfo.Nebenversion = VERSION_NEBENVERSION;
150
    VersionInfo.PCKompatibel = VERSION_KOMPATIBEL;
155
    VersionInfo.PCKompatibel = VERSION_KOMPATIBEL;
Line 151... Line 156...
151
   
156
   
152
        printf("\n\rFlightControl\n\rHardware:%d.%d\n\rSoftware:V%d.%d%c ",PlatinenVersion/10,PlatinenVersion%10, VERSION_HAUPTVERSION, VERSION_NEBENVERSION,VERSION_INDEX + 'a');
157
        printf("\n\rFlightControl\n\rHardware:%d.%d\n\rSoftware:V%d.%d%c ",PlatinenVersion/10,PlatinenVersion%10, VERSION_HAUPTVERSION, VERSION_NEBENVERSION,VERSION_INDEX + 'a');
-
 
158
        printf("\n\r==============================");
153
        printf("\n\r==============================");
159
 
Line 154... Line 160...
154
        GRN_ON;
160
        GRN_ON;
155
 
161
 
156
#define EE_DATENREVISION 70 // wird angepasst, wenn sich die EEPROM-Daten geändert haben
162
#define EE_DATENREVISION 70 // wird angepasst, wenn sich die EEPROM-Daten geändert haben