Subversion Repositories Projects

Rev

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

Rev 772 Rev 800
Line 16... Line 16...
16
 *   along with this program; if not, write to the                          *
16
 *   along with this program; if not, write to the                          *
17
 *   Free Software Foundation, Inc.,                                        *
17
 *   Free Software Foundation, Inc.,                                        *
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.              *
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.              *
19
 ****************************************************************************/
19
 ****************************************************************************/
20
 
20
 
-
 
21
#include "main.h"
21
#include <avr/io.h>
22
#include <avr/io.h>
22
#include <avr/interrupt.h>
23
#include <avr/interrupt.h>
23
#include <util/delay.h>
24
#include <util/delay.h>
24
#include "main.h"
-
 
25
#include "usart0.h"
25
#include "usart0.h"
26
 
26
 
27
#ifdef ANTENNATRACKTEST 
27
#ifdef ANTENNATRACKTEST 
28
 
28
 
29
 
29
 
30
#if !(ALLCHARSDEBUG|(WRITECHARS != -1))
30
#if !(ALLCHARSDEBUG|(WRITECHARS != -1))
31
 
31
 
32
 
32
 
33
/* ##########################################################################
33
/* ##########################################################################
Line 89... Line 89...
89
 * http://svn.mikrokopter.de/mikrowebsvn/filedetails.php?repname=FlightCtrl&path=%2Fbranches%2FV0.72p+Code+Redesign+killagreg%2Fuart0.c
89
 * http://svn.mikrokopter.de/mikrowebsvn/filedetails.php?repname=FlightCtrl&path=%2Fbranches%2FV0.72p+Code+Redesign+killagreg%2Fuart0.c
90
 */
90
 */
91
ISR(SIG_USART0_RECV) {
91
ISR(SIG_USART0_RECV) {
92
    uint8_t c;
92
    uint8_t c;
93
    // catch the received byte
93
    // catch the received byte
94
    c = UDR0;
94
    c = UDR0;
95
 
95
 
96
        // echo 
96
        // echo 
97
        UDR0 = c;
97
        UDR0 = c;
98
}
98
}
-
 
99
 
99
 
100
 
100
 
101
 
-
 
102
#endif
101
 
103
 
102
#endif
-
 
103
 
-
 
104
#endif // ANTENNATRACKTEST 
104
#endif // ANTENNATRACKTEST