Mark uart2_putchar and uart2_getchar as static
This commit is contained in:
parent
5d8b7b45da
commit
631bf80526
|
|
@ -14,7 +14,7 @@ uint8_t uart2_ibuf[20] = {0, 0};
|
|||
FILE _uart2io = {0};
|
||||
|
||||
|
||||
int uart2_putchar(char c, _UNUSED FILE *stream)
|
||||
static int uart2_putchar(char c, _UNUSED FILE *stream)
|
||||
{
|
||||
while (!uart2_txready);
|
||||
|
||||
|
|
@ -23,7 +23,7 @@ int uart2_putchar(char c, _UNUSED FILE *stream)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int uart2_getchar(_UNUSED FILE *stream)
|
||||
static int uart2_getchar(_UNUSED FILE *stream)
|
||||
{
|
||||
if (rbuf_empty(uart2_ibuf)) return -1;
|
||||
return rbuf_get(uart2_ibuf);
|
||||
|
|
|
|||
Loading…
Reference in New Issue