Subversion Repositories FlightCtrl

Rev

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

Rev 755 Rev 762
Line 8... Line 8...
8
/*********************************************/
8
/*********************************************/
9
/*  Initialize Interface to CMPS02 Compass   */
9
/*  Initialize Interface to CMPS02 Compass   */
10
/*********************************************/
10
/*********************************************/
11
void CMPS03_Init(void)
11
void CMPS03_Init(void)
12
{
12
{
13
        // Port PC4 connected to PWM output from compass module
13
        // Port PC5 connected to PWM output from compass module
14
        DDRC &= ~(1<<DDC4); // set as input
14
        DDRC &= ~(1<<DDC4); // set as input
15
        PORTC |= (1<<PORTC4); // pull up  to increase PWM counter aslo if nowthing is connected
15
        PORTC |= (1<<PORTC4); // pull up  to increase PWM counter allo if nothing is connected
Line 16... Line 16...
16
 
16
 
17
        PWMTimeout = 0;
17
        PWMTimeout = 0;