Subversion Repositories FlightCtrl

Rev

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

Rev 270 Rev 271
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
        unsigned int timer2 = 0;
95
//      unsigned int timer2 = 0;
96
    DDRB  = 0x00;
96
    DDRB  = 0x00;
97
    PORTB = 0x00;
97
    PORTB = 0x00;
98
    for(timer = 0; timer < 1000; timer++); // verzögern
98
    for(timer = 0; timer < 1000; timer++); // verzögern
99
    if(PINB & 0x01) PlatinenVersion = 11; else PlatinenVersion = 10;
99
    if(PINB & 0x01) PlatinenVersion = 11; else PlatinenVersion = 10;
100
    DDRC  = 0x81; // SCL
100
    DDRC  = 0x81; // SCL