Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 731 → Rev 732

/branches/V0.68d Code Redesign killagreg/rc.c
13,6 → 13,7
#include <avr/interrupt.h>
 
#include "rc.h"
#include "main.h"
 
volatile int16_t PPM_in[11];
volatile int16_t PPM_diff[11];
39,6 → 40,14
// low level
PORTD &= ~((1<<PORTD5)|(1<<PORTD4)|(1<<PORTD3));
 
// PD3 can't be used in FC 1.1 if 2nd UART is activated
// becouse TXD1 is at that port
if(BoardRelease == 10)
{
DDRD |= (1<<PORTD3);
PORTD &= ~(1<<PORTD3);
}
 
// Timer/Counter1 Control Register A, B, C
 
// Normal Mode (bits: WGM13=0, WGM12=0, WGM11=0, WGM10=0)
133,7 → 142,10
// demux sum signal for channels 5 to 7 to J3, J4, J5
if(index == 5) PORTD |= (1<<PORTD5); else PORTD &= ~(1<<PORTD5);
if(index == 6) PORTD |= (1<<PORTD4); else PORTD &= ~(1<<PORTD4);
if(index == 7) PORTD |= (1<<PORTD3); else PORTD &= ~(1<<PORTD3);
if(BoardRelease == 10)
{
if(index == 7) PORTD |= (1<<PORTD3); else PORTD &= ~(1<<PORTD3);
}
}
}
}