/branches/dongfang_FC_rewrite/uart1.c |
---|
53,7 → 53,6 |
#include "uart1.h" |
#include "configuration.h" |
#if defined (USE_MK3MAG) |
#include "ubx.h" |
#else |
#ifdef USE_RC_DSL |
#include "dsl.h" |
150,9 → 149,6 |
ISR(USART1_RX_vect) { |
uint8_t c; |
c = UDR1; // get data byte |
#if defined (USE_MK3MAG) |
ubx_parser(c); // and put it into the ubx protocol parser |
#else |
#ifdef USE_RC_DSL |
dsl_parser(c); // parse dsl data stream |
#endif |
159,5 → 155,4 |
#ifdef USE_RC_SPECTRUM |
spectrum_parser(c); // parse spectrum data stream |
#endif |
#endif |
} |