/branches/V0.68d Code Redesign killagreg/cmps03.c |
---|
1,7 → 1,6 |
#include <avr/io.h> |
int32_t PWMHeading = -1; |
uint8_t PWMTimeout = 0; |
10,9 → 9,9 |
/*********************************************/ |
void CMPS03_Init(void) |
{ |
// Port PC5 connected to PWM output from compass module |
// Port PC4 connected to PWM output from compass module |
DDRC &= ~(1<<DDC4); // set as input |
PORTC |= (1<<PORTC4); // pull up to increase PWM counter allo if nothing is connected |
PORTC |= (1<<PORTC4); // pull up to increase PWM counter also if nothing is connected |
PWMTimeout = 0; |
} |