Subversion Repositories FlightCtrl

Rev

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

Rev 745 Rev 754
Line 16... Line 16...
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"
Line -... Line 20...
-
 
20
 
-
 
21
#if defined (__AVR_ATmega644__)
-
 
22
#include "ubx.h"
-
 
23
#endif
-
 
24
 
-
 
25
 
20
 
26
 
21
#define FALSE   0
27
#define FALSE   0
Line 22... Line 28...
22
#define TRUE    1
28
#define TRUE    1
Line 178... Line 184...
178
        uint8_t crc1, crc2;
184
        uint8_t crc1, crc2;
179
        uint8_t c;
185
        uint8_t c;
Line 180... Line 186...
180
 
186
 
Line -... Line 187...
-
 
187
        c = UDR0;  // catch the received byte
-
 
188
 
-
 
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.
-
 
191
        #if defined (__AVR_ATmega644__)
Line 181... Line 192...
181
        c = UDR0;  // catch the received byte
192
        ubx_parser(c);
Line 182... Line 193...
182
 
193
        #endif
183
 
194