Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 756 → Rev 757

/branches/V0.68d Code Redesign killagreg/uart.c
17,13 → 17,11
#include "fc.h"
#include "_Settings.h"
#include "rc.h"
 
#if defined (__AVR_ATmega644__)
#include "ubx.h"
#endif
 
 
 
 
#define FALSE 0
#define TRUE 1
 
186,11 → 184,9
 
c = UDR0; // catch the received byte
 
// If the ATMEGA644 cpu is used the ublox module should be conneced to rxd of the 1st uart.
// The ATMEGA644p cpu has a 2nd uart to which the ublox is connected.
#if defined (__AVR_ATmega644__)
ubx_parser(c);
#endif
// If the FC 1.0 cpu is used the ublox module should be conneced to rxd of the 1st uart.
// The FC 1.1 /1.2 has the ATMEGA644p cpu with a 2nd uart to which the ublox should be connected.
if(BoardRelease == 10) ubx_parser(c);
 
if(rxd_buffer_locked) return; // if txd buffer is locked immediately return