aboutsummaryrefslogtreecommitdiff
path: root/stm-uart.h
diff options
context:
space:
mode:
authorFredrik Thulin <fredrik@thulin.net>2016-05-13 12:59:46 +0200
committerFredrik Thulin <fredrik@thulin.net>2016-05-13 12:59:46 +0200
commit4c5cee7be2804953f48c6d1d7132e48bc21373b6 (patch)
treebd2db3691eaf6650beb001a9f358a9fc5a823ec8 /stm-uart.h
parentc670d7b194eea62d6fd6f9de0ae4025abe076ad4 (diff)
rename huart1 and huart2 to huart_mgmt and huart_user
reduces risk of using the wrong one
Diffstat (limited to 'stm-uart.h')
-rw-r--r--stm-uart.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/stm-uart.h b/stm-uart.h
index e934068..4334d27 100644
--- a/stm-uart.h
+++ b/stm-uart.h
@@ -45,8 +45,8 @@ enum stm_uart_port {
STM_UART_MGMT
};
-extern UART_HandleTypeDef huart1;
-extern UART_HandleTypeDef huart2;
+extern UART_HandleTypeDef huart_mgmt;
+extern UART_HandleTypeDef huart_user;
extern HAL_StatusTypeDef uart_send_char(uint8_t ch);
extern HAL_StatusTypeDef uart_recv_char(uint8_t *cp);