Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 684 → Rev 685

/branches/V0.68d Code Redesign killagreg/timer0.c
1,3 → 1,8
#include <inttypes.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include "fc.h"
#include "analog.h"
#include "main.h"
 
volatile uint16_t CountMilliseconds = 0;
4,7 → 9,7
volatile uint8_t UpdateMotor = 0;
volatile uint16_t cntKompass = 0;
volatile uint16_t BeepTime = 0;
uint16_t BeepModulation = 0xFFFF;
volatile uint16_t BeepModulation = 0xFFFF;
 
 
 
94,13 → 99,13
if(Beeper_On)
{
// set speaker port to high
if(PlatinenVersion == 10) PORTD |= (1<<2); // Speaker at PD2
if(BoardRelease == 10) PORTD |= (1<<2); // Speaker at PD2
else PORTC |= (1<<7); // Speaker at PC7
}
else // beeper is off
{
// set speaker port to low
if(PlatinenVersion == 10) PORTD &= ~(1<<2);// Speaker at PD2
if(BoardRelease == 10) PORTD &= ~(1<<2);// Speaker at PD2
else PORTC &= ~(1<<7);// Speaker at PC7
}