NMEA and ARDUPILOT code ported from er9x

DSM2(PPM) bug fixed
Flash saving
PCBV3 removed
One delay_us(7) removed
BEEPSPKR becomes AUDIO
This commit is contained in:
bsongis
2012-01-27 18:58:59 +00:00
parent 5b1bad8705
commit e6d8648074
20 changed files with 1895 additions and 380 deletions
+3 -3
View File
@@ -164,14 +164,14 @@ void audioQueue::heartbeat()
case 0:
//stock beeper. simply turn port on for x time!
if (toneTimeLeft > 0) {
#if defined (PCBV3)
#if defined (PCBV4)
TCCR0A &= ~(0b01<<COM0A0);
#else
PORTE |= (1 << OUT_E_BUZZER); // speaker output 'high'
#endif
}
else {
#if defined (PCVV3)
#if defined (PCVV4)
TCCR0A &= ~(0b01<<COM0A0);
#else
PORTE &= ~(1 << OUT_E_BUZZER); // speaker output 'low'
@@ -188,7 +188,7 @@ void audioQueue::heartbeat()
if (toneTimeLeft > 0) {
toneCounter += toneFreq;
if ((toneCounter & 0x80) == 0x80) {
#if defined (PCBV3)
#if defined (PCBV4)
TCCR0A &= ~(0b01<<COM0A0);
#else
PORTE |= (1 << OUT_E_BUZZER); // speaker output 'high'