Subversion Repositories Projects

Compare Revisions

Regard whitespace Rev 346 → Rev 387

/C-OSD/trunk/usart1.c
53,8 → 53,8
* disable the txd pin of usart1
*/
void usart1_DisableTXD(void) {
UCSR1B &= ~(1 << TXCIE1); // disable TX-Interrupt
UCSR1B &= ~(1 << TXEN1); // disable TXD in USART
//UCSR1B &= ~(1 << TXCIE1); // disable TX-Interrupt
UCSR1B &= ~(1 << TXEN1); // disable TX in USART
DDRB &= ~(1<<DDB3); // set TXD pin as input
PORTB &= ~(1 << PORTB3);
}
66,7 → 66,7
DDRB |= (1<<DDB3); // set TXD pin as output
PORTB &= ~(1 << PORTB3);
UCSR1B |= (1 << TXEN1); // enable TX in USART
UCSR1B |= (1 << TXCIE1); // disable TX-Interrupt
//UCSR1B |= (1 << TXCIE1); // enable TX-Interrupt
}
 
 
90,6 → 90,13
}
 
/**
* transmit interrupt handler
* unused
*/
SIGNAL(SIG_USART1_DATA) {
}
 
/**
* receive data through usart1
* portions taken and adapted from
* http://svn.mikrokopter.de/mikrowebsvn/filedetails.php?repname=FlightCtrl&path=%2Fbranches%2FV0.72p+Code+Redesign+killagreg%2Fuart0.c