Subversion Repositories FlightCtrl

Rev

Rev 1796 | Rev 1868 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1796 Rev 1821
Line 114... Line 114...
114
        UCSR1B &= ~(1 << UCSZ12);
114
        UCSR1B &= ~(1 << UCSZ12);
115
        UCSR1C |=  (1 << UCSZ11);
115
        UCSR1C |= (1 << UCSZ11);
116
        UCSR1C |=  (1 << UCSZ10);
116
        UCSR1C |= (1 << UCSZ10);
Line 117... Line 117...
117
 
117
 
118
        // flush receive buffer explicit
118
        // flush receive buffer explicit
-
 
119
        while (UCSR1A & (1 << RXC1))
Line 119... Line 120...
119
        while ( UCSR1A & (1<<RXC1) ) UDR1;
120
                UDR1;
120
 
121
 
121
        // enable interrupts at the end
122
        // enable interrupts at the end
122
        // enable RX-Interrupt
123
        // enable RX-Interrupt
Line 144... Line 145...
144
}
145
 }
145
*/
146
 */
146
/****************************************************************/
147
/****************************************************************/
147
/*               USART1 receiver ISR                            */
148
/*               USART1 receiver ISR                            */
148
/****************************************************************/
149
/****************************************************************/
149
ISR(USART1_RX_vect) {
150
ISR(USART1_RX_vect)
-
 
151
{
150
        uint8_t c;
152
        uint8_t c;
151
        c = UDR1; // get data byte
153
        c = UDR1; // get data byte
152
        #ifdef USE_RC_DSL
154
#ifdef USE_RC_DSL
153
        dsl_parser(c);                  // parse dsl data stream
155
        dsl_parser(c); // parse dsl data stream
154
        #endif
156
#endif