Subversion Repositories FlightCtrl

Rev

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

Rev 953 Rev 960
Line 50... Line 50...
50
 
50
 
51
        // set PB3 and PB4 as output for the PWM used as aoffset for the pressure sensor
51
        // set PB3 and PB4 as output for the PWM used as aoffset for the pressure sensor
52
        DDRB |= (1<<DDB4)|(1<<DDB3);
52
        DDRB |= (1<<DDB4)|(1<<DDB3);
Line 53... Line -...
53
        PORTB &= ~((1<<PORTB4)|(1<<PORTB3));
-
 
54
 
-
 
55
        if(BoardRelease == 10)
-
 
56
        {
-
 
57
                DDRD |= (1<<DDD2);
-
 
58
                PORTD &= ~(1<<PORTD2);
-
 
59
 
-
 
60
        }
-
 
61
        else
-
 
62
        {
-
 
63
                DDRC |= (1<<DDC7);
-
 
64
                PORTC &= ~(1<<PORTC7);
-
 
65
        }
53
        PORTB &= ~((1<<PORTB4)|(1<<PORTB3));
Line 66... Line 54...
66
 
54
 
67
        // Timer/Counter 0 Control Register A
55
        // Timer/Counter 0 Control Register A
68
 
56