Subversion Repositories FlightCtrl

Rev

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

Rev 188 Rev 296
Line 90... Line 90...
90
//Hauptprogramm
90
//Hauptprogramm
91
int main (void)
91
int main (void)
92
//############################################################################
92
//############################################################################
93
{
93
{
94
        unsigned int timer;
94
        unsigned int timer;
-
 
95
 
95
        unsigned int timer2 = 0;
96
        unsigned int timer2 = 0;
96
    DDRB  = 0x00;
97
    DDRB  = 0x00;
97
    PORTB = 0x00;
98
    PORTB = 0x00;
98
    for(timer = 0; timer < 1000; timer++); // verzögern
99
    for(timer = 0; timer < 1000; timer++); // verzögern
99
    if(PINB & 0x01) PlatinenVersion = 11; else PlatinenVersion = 10;
100
    if(PINB & 0x01) PlatinenVersion = 11; else PlatinenVersion = 10;
Line 127... Line 128...
127
 
128
 
128
    VersionInfo.Hauptversion = VERSION_HAUPTVERSION;
129
    VersionInfo.Hauptversion = VERSION_HAUPTVERSION;
129
    VersionInfo.Nebenversion = VERSION_NEBENVERSION;
130
    VersionInfo.Nebenversion = VERSION_NEBENVERSION;
Line 130... Line 131...
130
    VersionInfo.PCKompatibel = VERSION_KOMPATIBEL;
131
    VersionInfo.PCKompatibel = VERSION_KOMPATIBEL;
131
   
132
   
132
        printf("\n\rFlightControl\n\rHardware:%d.%d\n\rSoftware:V%d.%d ",PlatinenVersion/10,PlatinenVersion%10, VERSION_HAUPTVERSION, VERSION_NEBENVERSION);
133
        printf("\n\rFlightControl\n\rHardware:%d.%d\n\rSoftware:V%d.%d%c ",PlatinenVersion/10,PlatinenVersion%10, VERSION_HAUPTVERSION, VERSION_NEBENVERSION,VERSION_INDEX + 'a');
Line 133... Line 134...
133
        printf("\n\r==============================");
134
        printf("\n\r==============================");
134
        GRN_ON;
135
        GRN_ON;