Subversion Repositories FlightCtrl

Rev

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

Rev 859 Rev 860
Line 94... Line 94...
94
        //unsigned int timer2 = 0;
94
        //unsigned int timer2 = 0;
95
    DDRB  = 0x00;
95
    DDRB  = 0x00;
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
    DDRC  = 0x81; // SCL
99
    DDRC  = 0x8D; // SCL, PC3, PC2
100
    PORTC = 0xff; // Pullup SDA
100
    PORTC = 0xff; // Pullup SDA
101
    DDRB  = 0x1B; // LEDs und Druckoffset
101
    DDRB  = 0x1B; // LEDs und Druckoffset
102
    PORTB = 0x01; // LED_Rot
102
    PORTB = 0x01; // LED_Rot
103
    DDRD  = 0x3E; // Speaker & TXD & J3 J4 J5
103
    DDRD  = 0x3E; // Speaker & TXD & J3 J4 J5
104
    DDRD  |=0x80; // J7
104
    DDRD  |=0x80; // J7
Line 105... Line 105...
105
   
105
   
Line 106... Line 106...
106
        PORTD = 0xF7; // LED
106
          PORTD = 0xF7; // LED
107
 
107
 
108
   
108
   
Line 114... Line 114...
114
 
114
 
Line 115... Line 115...
115
        StickGier = 0; PPM_in[K_GAS] = 0;StickRoll = 0; StickNick = 0;
115
        StickGier = 0; PPM_in[K_GAS] = 0;StickRoll = 0; StickNick = 0;
Line -... Line 116...
-
 
116
 
-
 
117
    ROT_OFF;
116
 
118
   
117
    ROT_OFF;
119
    EXT1OUT_INV_ON;
118
   
120
   
119
    Timer_Init();
121
    Timer_Init();
120
        UART_Init();
122
        UART_Init();
Line 127... Line 129...
127
 
129
 
128
    VersionInfo.Hauptversion = VERSION_HAUPTVERSION;
130
    VersionInfo.Hauptversion = VERSION_HAUPTVERSION;
129
    VersionInfo.Nebenversion = VERSION_NEBENVERSION;
131
    VersionInfo.Nebenversion = VERSION_NEBENVERSION;
Line 130... Line 132...
130
    VersionInfo.PCKompatibel = VERSION_KOMPATIBEL;
132
    VersionInfo.PCKompatibel = VERSION_KOMPATIBEL;
131
   
133
   
132
        printf("\n\rFlightControl\n\rHardware:%d.%d\n\rSoftware:V%d.%d%c ",PlatinenVersion/10,PlatinenVersion%10, VERSION_HAUPTVERSION, VERSION_NEBENVERSION,VERSION_INDEX + 'a');
134
        printf("\n\rFlightControl\n\rHardware:%d.%d\n\rSoftware:V%d.%d%c DarkMod",PlatinenVersion/10,PlatinenVersion%10, VERSION_HAUPTVERSION, VERSION_NEBENVERSION,VERSION_INDEX + 'a');
Line 133... Line 135...
133
        printf("\n\r==============================");
135
        printf("\n\r==============================");
134
        GRN_ON;
136
        GRN_ON;