Subversion Repositories FlightCtrl

Rev

Rev 624 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 624 Rev 738
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
 
-
 
100
// [Harrie:] DDRC : 0x8D=128+8+4+1 so PC0,PC2(LED1),PC3(LED2),PC7 are now defined as outputs
99
    DDRC  = 0x81; // SCL
101
    DDRC  = 0x8D; // SCL
100
    PORTC = 0xff; // Pullup SDA
102
    PORTC = 0xff; // Pullup SDA
101
    DDRB  = 0x1B; // LEDs und Druckoffset
103
    DDRB  = 0x1B; // LEDs und Druckoffset
102
    PORTB = 0x01; // LED_Rot
104
    PORTB = 0x01; // LED_Rot
103
    DDRD  = 0x3E; // Speaker & TXD & J3 J4 J5
105
    DDRD  = 0x3E; // Speaker & TXD & J3 J4 J5
104
    DDRD  |=0x80; // J7
106
    DDRD  |=0x80; // J7