Subversion Repositories FlightCtrl

Rev

Rev 754 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 754 Rev 757
Line 15... Line 15...
15
#include "timer0.h"
15
#include "timer0.h"
16
#include "uart.h"
16
#include "uart.h"
17
#include "fc.h"
17
#include "fc.h"
18
#include "_Settings.h"
18
#include "_Settings.h"
19
#include "rc.h"
19
#include "rc.h"
20
 
-
 
21
#if defined (__AVR_ATmega644__)
-
 
22
#include "ubx.h"
20
#include "ubx.h"
23
#endif
21
 
Line 24... Line 22...
24
 
22
 
25
 
23
 
Line 184... Line 182...
184
        uint8_t crc1, crc2;
182
        uint8_t crc1, crc2;
185
        uint8_t c;
183
        uint8_t c;
Line 186... Line 184...
186
 
184
 
Line 187... Line 185...
187
        c = UDR0;  // catch the received byte
185
        c = UDR0;  // catch the received byte
188
 
186
 
189
        // If the ATMEGA644 cpu is used the ublox module should be conneced to rxd of the 1st uart.
-
 
190
        // The ATMEGA644p cpu has a 2nd uart to which the ublox is connected.
187
        // If the FC 1.0 cpu is used the ublox module should be conneced to rxd of the 1st uart.
191
        #if defined (__AVR_ATmega644__)
-
 
Line 192... Line 188...
192
        ubx_parser(c);
188
        // The FC 1.1 /1.2 has the ATMEGA644p cpu with a 2nd uart to which the ublox should be connected.
Line 193... Line 189...
193
        #endif
189
        if(BoardRelease == 10) ubx_parser(c);
194
 
190