Skip to content

Commit

Permalink
Merge pull request #1252 from mkj/staticuart
Browse files Browse the repository at this point in the history
samd21: make uart_init() static
  • Loading branch information
hathach committed Dec 20, 2021
2 parents cadfcd1 + 9b2e78c commit 693b688
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hw/bsp/samd21/family.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void USB_Handler(void)
//--------------------------------------------------------------------+
// UART support
//--------------------------------------------------------------------+
void uart_init(void);
static void uart_init(void);

//--------------------------------------------------------------------+
// MACRO TYPEDEF CONSTANT ENUM DECLARATION
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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)
{

}
Expand Down

0 comments on commit 693b688

Please sign in to comment.