diff options
| author | Matt Johnston <[email protected]> | 2021-12-20 15:43:16 +0800 |
|---|---|---|
| committer | Matt Johnston <[email protected]> | 2021-12-20 15:43:16 +0800 |
| commit | 9b2e78c91555f3e50baaf0df30ab18927a65cb65 (patch) | |
| tree | b4127e46b01b05414fb7d67b6499a0abe8fb6fdd | |
| parent | cadfcd153e8fce804f38f0e19997c13bf6931a49 (diff) | |
samd21: make uart_init() static
Avoids a linker conflict if programs are using the same function name.
| -rw-r--r-- | hw/bsp/samd21/family.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/bsp/samd21/family.c b/hw/bsp/samd21/family.c index cead582e9..494dc393a 100644 --- a/hw/bsp/samd21/family.c +++ b/hw/bsp/samd21/family.c @@ -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) { } |
