Subversion Repositories FlightCtrl

Rev

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

Rev 1645 Rev 1796
Line 51... Line 51...
51
#include <avr/io.h>
51
#include <avr/io.h>
52
#include <avr/interrupt.h>
52
#include <avr/interrupt.h>
53
#include "uart1.h"
53
#include "uart1.h"
54
#include "configuration.h"
54
#include "configuration.h"
55
#if defined (USE_MK3MAG)
55
#if defined (USE_MK3MAG)
56
#include "ubx.h"
-
 
57
#else
56
#else
58
#ifdef USE_RC_DSL
57
#ifdef USE_RC_DSL
59
#include "dsl.h"
58
#include "dsl.h"
60
#endif
59
#endif
61
#ifdef USE_RC_SPECTRUM
60
#ifdef USE_RC_SPECTRUM
Line 148... Line 147...
148
/*               USART1 receiver ISR                            */
147
/*               USART1 receiver ISR                            */
149
/****************************************************************/
148
/****************************************************************/
150
ISR(USART1_RX_vect) {
149
ISR(USART1_RX_vect) {
151
        uint8_t c;
150
        uint8_t c;
152
        c = UDR1; // get data byte
151
        c = UDR1; // get data byte
153
        #if defined (USE_MK3MAG)
-
 
154
        ubx_parser(c);                  // and put it into the ubx protocol parser
-
 
155
        #else
-
 
156
        #ifdef USE_RC_DSL
152
        #ifdef USE_RC_DSL
157
        dsl_parser(c);                  // parse dsl data stream
153
        dsl_parser(c);                  // parse dsl data stream
158
        #endif
154
        #endif
159
        #ifdef USE_RC_SPECTRUM
155
        #ifdef USE_RC_SPECTRUM
160
        spectrum_parser(c);             // parse spectrum data stream
156
        spectrum_parser(c);             // parse spectrum data stream
161
        #endif
157
        #endif
162
        #endif
-
 
163
}
158
}