fix uart compile error
This commit is contained in:
parent
2e01e2bfb3
commit
0295c8c385
@ -25,6 +25,8 @@
|
|||||||
#include "uart.h"
|
#include "uart.h"
|
||||||
#include "fifo.h"
|
#include "fifo.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
volatile struct {
|
volatile struct {
|
||||||
uint8_t tmr_int:1;
|
uint8_t tmr_int:1;
|
||||||
uint8_t adc_int:1;
|
uint8_t adc_int:1;
|
||||||
@ -35,6 +37,9 @@ volatile struct {
|
|||||||
volatile char rxbuff;
|
volatile char rxbuff;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
static int uart_stream(char c, FILE *stream);
|
||||||
|
|
||||||
FILE uart_stdout = FDEV_SETUP_STREAM(uart_stream, NULL, _FDEV_SETUP_WRITE);
|
FILE uart_stdout = FDEV_SETUP_STREAM(uart_stream, NULL, _FDEV_SETUP_WRITE);
|
||||||
|
|
||||||
void uart_init(void)
|
void uart_init(void)
|
||||||
|
|||||||
@ -32,7 +32,6 @@ void uart_init(void);
|
|||||||
void uart_putc(const uint8_t);
|
void uart_putc(const uint8_t);
|
||||||
void uart_puts(const char *s);
|
void uart_puts(const char *s);
|
||||||
void uart_puts_P(PGM_P s);
|
void uart_puts_P(PGM_P s);
|
||||||
static int uart_stream(char c, FILE *stream);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user