aboutsummaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorFredrik Thulin <fredrik@thulin.net>2016-05-31 15:25:04 +0200
committerFredrik Thulin <fredrik@thulin.net>2016-05-31 15:25:04 +0200
commitd8ede68bee96b810ad7bfcbd126daf67e2e7b92a (patch)
tree64fe0233a979d9039768d1c444554cb6d09335fb /projects
parent13d9bfb4bf1cfbb3d723c919763bc460c193ed3b (diff)
Update huart names to reflect change in stm-uart.
Diffstat (limited to 'projects')
-rw-r--r--projects/hsm/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/projects/hsm/main.c b/projects/hsm/main.c
index 95483ee..ed93aed 100644
--- a/projects/hsm/main.c
+++ b/projects/hsm/main.c
@@ -202,7 +202,7 @@ void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
*/
void USART2_IRQHandler(void)
{
- HAL_UART_IRQHandler(&huart2);
+ HAL_UART_IRQHandler(&huart_user);
}
/* The main thread. After the system setup, it waits for the RPC-request
@@ -252,7 +252,7 @@ int main()
Error_Handler();
/* Start the non-blocking receive */
- HAL_UART_Receive_IT(&huart2, &c, 1);
+ HAL_UART_Receive_IT(&huart_user, &c, 1);
while (1) {
osSemaphoreWait(rpc_sem, osWaitForever);