Subversion Repositories FlightCtrl

Rev

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

Rev 762 Rev 764
Line 1... Line 1...
1
#include <avr/io.h>
1
#include <avr/io.h>
Line 2... Line -...
2
 
-
 
3
 
2
 
4
 
3
 
Line 5... Line 4...
5
int32_t PWMHeading = -1;
4
int32_t PWMHeading = -1;
6
uint8_t PWMTimeout = 0;
5
uint8_t PWMTimeout = 0;
7
 
6
 
8
/*********************************************/
7
/*********************************************/
9
/*  Initialize Interface to CMPS02 Compass   */
8
/*  Initialize Interface to CMPS02 Compass   */
10
/*********************************************/
9
/*********************************************/
11
void CMPS03_Init(void)
10
void CMPS03_Init(void)
12
{
11
{
Line 13... Line 12...
13
        // Port PC5 connected to PWM output from compass module
12
        // Port PC4 connected to PWM output from compass module
14
        DDRC &= ~(1<<DDC4); // set as input
13
        DDRC &= ~(1<<DDC4); // set as input