/C-OSD/trunk/usart0.c |
---|
24,9 → 24,18 |
#include <util/delay.h> |
#include "usart0.h" |
#ifdef ANTENNATRACKTEST |
#ifdef SERIALDEBUGDRAW |
#define USART0ENABLE 1 |
#endif |
#ifdef ANTENNATRACKTEST |
#define USART0ENABLE 1 |
#endif |
#ifdef USART0ENABLE |
#if !(ALLCHARSDEBUG|(WRITECHARS != -1)) |
46,6 → 55,10 |
//asynchronous 8N1 |
UCSR0C = (1 << URSEL0) | (3 << UCSZ00); |
DDRD |= (1 << DDD1); // set TXD pin as output |
PORTD &= ~(1 << PORTD1); // disable pullup on TXD pin |
} |
101,4 → 114,4 |
#endif |
#endif // ANTENNATRACKTEST |
#endif // USART0ENABLE |