Skip to content

Commit 73ffc06

Browse files
committed
STM32 serial: fix linking error
1 parent e446c26 commit 73ffc06

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

targets/TARGET_STM/TARGET_STM32F4/serial_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ UART_HandleTypeDef uart_handlers[UART_NUM];
5050
static uart_irq_handler irq_handler;
5151

5252
// Defined in serial_api.c
53-
int8_t get_uart_index(int uart_base);
53+
inline int8_t get_uart_index(UARTName uart_name);
5454

5555
/******************************************************************************
5656
* INTERRUPTS HANDLING

targets/TARGET_STM/serial_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ HAL_StatusTypeDef init_uart(serial_t *obj)
558558

559559
// Warning: the list of UART/USART in this function must be aligned with the list
560560
// written in serial_init function.
561-
inline int8_t get_uart_index(UARTName uart_name)
561+
int8_t get_uart_index(UARTName uart_name)
562562
{
563563
uint8_t index = 0;
564564

0 commit comments

Comments
 (0)