From d8ede68bee96b810ad7bfcbd126daf67e2e7b92a Mon Sep 17 00:00:00 2001 From: Fredrik Thulin Date: Tue, 31 May 2016 15:25:04 +0200 Subject: Update huart names to reflect change in stm-uart. --- projects/hsm/main.c | 4 ++-- 1 file 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); -- cgit v1.2.3