From 0295c8c385e2e7378eb008e7fccf37ca60ab151f Mon Sep 17 00:00:00 2001 From: optixx Date: Thu, 17 Sep 2009 20:42:21 +0200 Subject: [PATCH] fix uart compile error --- avr/usbload/uart.c | 5 +++++ avr/usbload/uart.h | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/avr/usbload/uart.c b/avr/usbload/uart.c index 00cc86f..f336d2f 100644 --- a/avr/usbload/uart.c +++ b/avr/usbload/uart.c @@ -25,6 +25,8 @@ #include "uart.h" #include "fifo.h" + + volatile struct { uint8_t tmr_int:1; uint8_t adc_int:1; @@ -35,6 +37,9 @@ volatile struct { volatile char rxbuff; + +static int uart_stream(char c, FILE *stream); + FILE uart_stdout = FDEV_SETUP_STREAM(uart_stream, NULL, _FDEV_SETUP_WRITE); void uart_init(void) diff --git a/avr/usbload/uart.h b/avr/usbload/uart.h index a8ec5e7..ef044ce 100644 --- a/avr/usbload/uart.h +++ b/avr/usbload/uart.h @@ -32,7 +32,6 @@ void uart_init(void); void uart_putc(const uint8_t); void uart_puts(const char *s); void uart_puts_P(PGM_P s); -static int uart_stream(char c, FILE *stream); #endif