diff --git a/inc/usart.h b/inc/usart.h --- a/inc/usart.h +++ b/inc/usart.h @@ -3,7 +3,7 @@ #include "stm32f0xx_hal.h" -extern UART_HandleTypeDef huart1; -void MX_USART1_UART_Init(void); +void uart_init(void); +UART_HandleTypeDef* uart_gethandle(void); #endif