aboutsummaryrefslogtreecommitdiff
path: root/stm-uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm-uart.c')
-rw-r--r--stm-uart.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/stm-uart.c b/stm-uart.c
index 538fe6c..ce52ca0 100644
--- a/stm-uart.c
+++ b/stm-uart.c
@@ -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;