Subversion Repositories FlightCtrl

Rev

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

Rev 894 Rev 895
Line 114... Line 114...
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
117
    for(timer = 0; timer < 1000; timer++); // verzögern
118
    if(PINB & 0x01) PlatinenVersion = 11; else PlatinenVersion = 10;
118
    if(PINB & 0x01) PlatinenVersion = 11; else PlatinenVersion = 10;
119
    DDRC  = 0x81; // SCL
119
    DDRC  = 0x8D; // SCL
120
    PORTC = 0xff; // Pullup SDA
120
    PORTC = 0xff; // Pullup SDA
121
    DDRB  = 0x1B; // LEDs und Druckoffset
121
    DDRB  = 0x1B; // LEDs und Druckoffset
122
    PORTB = 0x01; // LED_Rot
122
    PORTB = 0x01; // LED_Rot
123
    DDRD  = 0x3E; // Speaker & TXD & J3 J4 J5
123
    DDRD  = 0x3E; // Speaker & TXD & J3 J4 J5
124
    DDRD  |=0x80; // J7
124
    DDRD  |=0x80; // J7