Mark uart2_putchar and uart2_getchar as static

This commit is contained in:
gudnimg 2024-11-24 09:21:52 +00:00 committed by 3d-gussner
parent 51e81217dd
commit 4a0973941f
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ uint8_t uart2_ibuf[20] = {0, 0};
FILE _uart2io = {0}; FILE _uart2io = {0};
int uart2_putchar(char c, _UNUSED FILE *stream) static int uart2_putchar(char c, _UNUSED FILE *stream)
{ {
while (!uart2_txready); while (!uart2_txready);
@ -23,7 +23,7 @@ int uart2_putchar(char c, _UNUSED FILE *stream)
return 0; return 0;
} }
int uart2_getchar(_UNUSED FILE *stream) static int uart2_getchar(_UNUSED FILE *stream)
{ {
if (rbuf_empty(uart2_ibuf)) return -1; if (rbuf_empty(uart2_ibuf)) return -1;
return rbuf_get(uart2_ibuf); return rbuf_get(uart2_ibuf);