Subversion Repositories FlightCtrl

Rev

Rev 1199 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1199 Rev 1201
Line 52... Line 52...
52
#include <avr/interrupt.h>
52
#include <avr/interrupt.h>
53
#include "main.h"
53
#include "main.h"
54
#include "uart1.h"
54
#include "uart1.h"
55
#if defined (USE_KILLAGREG) || defined (USE_MK3MAG)
55
#if defined (USE_KILLAGREG) || defined (USE_MK3MAG)
56
#include "ubx.h"
56
#include "ubx.h"
57
#define USART1_BAUD 57600
-
 
58
#else
57
#else
59
#ifdef USE_RC_DSL
58
#ifdef USE_RC_DSL
60
#include "dsl.h"
59
#include "dsl.h"
61
#define USART1_BAUD 38400
-
 
62
#endif
60
#endif
63
#ifdef USE_RC_SPECTRUM
61
#ifdef USE_RC_SPECTRUM
64
#include "spectrum.h"
62
#include "spectrum.h"
65
#define USART1_BAUD 115200
-
 
66
#endif
63
#endif
67
#endif
64
#endif
Line 68... Line 65...
68
 
65
 
69
#ifndef USART1_BAUD
66
#ifndef USART1_BAUD
Line 129... Line 126...
129
        // enable TX-Interrupt
126
        // enable TX-Interrupt
130
        //UCSR1B |= (1 << TXCIE1);
127
        //UCSR1B |= (1 << TXCIE1);
131
        // enable DRE interrupt
128
        // enable DRE interrupt
132
        //UCSR1B |= (1 << UDRIE1);
129
        //UCSR1B |= (1 << UDRIE1);
Line 133... Line -...
133
 
-
 
134
 
130
 
135
        // restore global interrupt flags
131
        // restore global interrupt flags
136
    SREG = sreg;
-
 
137
 
132
    SREG = sreg;
Line 138... Line 133...
138
}
133
}