indent cleanup
This commit is contained in:
@@ -38,31 +38,22 @@ volatile char rxbuff;
|
||||
|
||||
|
||||
|
||||
static int uart_stream(char c, FILE *stream);
|
||||
static int uart_stream(char c, FILE * stream);
|
||||
|
||||
FILE uart_stdout = FDEV_SETUP_STREAM(uart_stream, NULL, _FDEV_SETUP_WRITE);
|
||||
|
||||
void uart_init(void)
|
||||
{
|
||||
UCSR0A = _BV(U2X0); /* improves baud rate error @ F_CPU = 1 MHz */
|
||||
UCSR0B = _BV(TXEN0) | _BV(RXEN0) | _BV(RXCIE0); /* tx/rx enable, rx complete
|
||||
* intr */
|
||||
UBRR0L = (F_CPU / (8 * 115200UL)) - 1;
|
||||
UCSR0A = _BV(U2X0); /* improves baud rate error @ F_CPU = 1 MHz */
|
||||
UCSR0B = _BV(TXEN0) | _BV(RXEN0) | _BV(RXCIE0); /* tx/rx enable, rx complete * intr */
|
||||
UBRR0L = (F_CPU / (8 * 115200UL)) - 1;
|
||||
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
ISR(USART0_RX_vect)
|
||||
{
|
||||
uint8_t c;
|
||||
c = UDR0;
|
||||
if (bit_is_clear(UCSR0A, FE0)) {
|
||||
rxbuff = c;
|
||||
intflags.rx_int = 1;
|
||||
}
|
||||
}
|
||||
*/
|
||||
* ISR(USART0_RX_vect) { uint8_t c; c = UDR0; if (bit_is_clear(UCSR0A, FE0)) { rxbuff = c; intflags.rx_int = 1; } }
|
||||
*/
|
||||
|
||||
void uart_putc(uint8_t c)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user