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 | ****************************************************************************/ |
Line -... | Line 20... | ||
- | 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 "main.h" |
24 | #include <util/delay.h> |
25 | #include "usart0.h" |
25 | #include "usart0.h" |
26 | 26 | ||
27 | #ifdef ANTENNATRACKTEST |
27 | #ifdef ANTENNATRACKTEST |
Line 28... | Line 28... | ||
28 | 28 | ||
Line 29... | Line 29... | ||
29 | 29 | ||
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 | ||
Line -... | Line 100... | ||
- | 100 | ||
Line 99... | Line -... | ||
99 | - | ||
100 | - | ||
101 | 101 |