STM32 serial: fix linking error

pull/5962/head
bcostm 2018-01-25 16:03:19 +01:00
parent e446c26584
commit 73ffc06ffd
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ UART_HandleTypeDef uart_handlers[UART_NUM];
static uart_irq_handler irq_handler;
// Defined in serial_api.c
int8_t get_uart_index(int uart_base);
inline int8_t get_uart_index(UARTName uart_name);
/******************************************************************************
* INTERRUPTS HANDLING

View File

@ -558,7 +558,7 @@ HAL_StatusTypeDef init_uart(serial_t *obj)
// Warning: the list of UART/USART in this function must be aligned with the list
// written in serial_init function.
inline int8_t get_uart_index(UARTName uart_name)
int8_t get_uart_index(UARTName uart_name)
{
uint8_t index = 0;