Merge pull request #1252 from mkj/staticuart

samd21: make uart_init() static
This commit is contained in:
Ha Thach 2021-12-20 20:05:08 +07:00 committed by GitHub
commit 693b6886b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ void USB_Handler(void)
//--------------------------------------------------------------------+
// UART support
//--------------------------------------------------------------------+
void uart_init(void);
static void uart_init(void);
//--------------------------------------------------------------------+
// MACRO TYPEDEF CONSTANT ENUM DECLARATION
@ -152,7 +152,7 @@ uint32_t board_button_read(void)
#define BOARD_SERCOM2(n) SERCOM ## n
#define BOARD_SERCOM(n) BOARD_SERCOM2(n)
void uart_init(void)
static void uart_init(void)
{
#if UART_SERCOM == 0
gpio_set_pin_function(PIN_PA06, PINMUX_PA06D_SERCOM0_PAD2);
@ -217,7 +217,7 @@ int board_uart_write(void const * buf, int len)
}
#else // ! defined(UART_SERCOM)
void uart_init(void)
static void uart_init(void)
{
}