Skip to content

Commit

Permalink
Mark uart2_putchar and uart2_getchar as static
Browse files Browse the repository at this point in the history
  • Loading branch information
gudnimg committed Nov 24, 2024
1 parent 5d8b7b4 commit 631bf80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Firmware/uart2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);
Expand Down

0 comments on commit 631bf80

Please sign in to comment.