diff options
Diffstat (limited to 'stm-uart.c')
-rw-r--r-- | stm-uart.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -37,8 +37,8 @@ #include <string.h> -UART_HandleTypeDef huart1; -UART_HandleTypeDef huart2; +UART_HandleTypeDef huart_mgmt; +UART_HandleTypeDef huart_user; #define DEFAULT_UART STM_UART_USER @@ -46,9 +46,9 @@ UART_HandleTypeDef huart2; inline UART_HandleTypeDef *_which_uart(enum stm_uart_port port) { if (port == STM_UART_USER) { - return &huart2; + return &huart_user; } else if (port == STM_UART_MGMT) { - return &huart1; + return &huart_mgmt; } return NULL; |