mirror of https://github.com/ARMmbed/mbed-os.git
STM32 serial: fix linking error
parent
e446c26584
commit
73ffc06ffd
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue