update
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
/* Private includes ----------------------------------------------------------*/
|
||||
/* USER CODE BEGIN Includes */
|
||||
|
||||
#include "os_timer.h"
|
||||
#include "app_timer.h"
|
||||
#include "bsp_Uart.h"
|
||||
/* USER CODE END Includes */
|
||||
|
||||
@@ -194,12 +194,12 @@ void PendSV_Handler(void)
|
||||
void SysTick_Handler(void)
|
||||
{
|
||||
/* USER CODE BEGIN SysTick_IRQn 0 */
|
||||
OsTimer_Increment(1);
|
||||
COM_Uart1.Rx_TimeIncrementInt(&COM_Uart1,1);
|
||||
COM_Uart2.Rx_TimeIncrementInt(&COM_Uart2,1);
|
||||
COM_Uart4.Rx_TimeIncrementInt(&COM_Uart4,1);
|
||||
app_timer.increment_int(1);
|
||||
com_uart1.rx_time_increment_int(&com_uart1,1);
|
||||
com_uart2.rx_time_increment_int(&com_uart2,1);
|
||||
com_uart4.rx_time_increment_int(&com_uart4,1);
|
||||
/* USER CODE END SysTick_IRQn 0 */
|
||||
HAL_IncTick();
|
||||
HAL_IncTick();
|
||||
/* USER CODE BEGIN SysTick_IRQn 1 */
|
||||
|
||||
/* USER CODE END SysTick_IRQn 1 */
|
||||
@@ -277,7 +277,7 @@ void USART1_IRQHandler(void)
|
||||
// if (__HAL_UART_GET_FLAG(&huart1, UART_FLAG_IDLE))
|
||||
// {
|
||||
// __HAL_UART_CLEAR_IDLEFLAG(&huart1);
|
||||
// COM_Uart1.Rx_IdleInt(&COM_Uart1);
|
||||
// com_uart1.Rx_IdleInt(&com_uart1);
|
||||
// }
|
||||
// /* USER CODE END USART1_IRQn 0 */
|
||||
HAL_UART_IRQHandler(&huart1);
|
||||
@@ -295,7 +295,7 @@ void USART2_IRQHandler(void)
|
||||
// if (__HAL_UART_GET_FLAG(&huart2, UART_FLAG_IDLE))
|
||||
// {
|
||||
// __HAL_UART_CLEAR_IDLEFLAG(&huart2);
|
||||
// COM_Uart2.Rx_IdleInt(&COM_Uart2);
|
||||
// com_uart2.Rx_IdleInt(&com_uart2);
|
||||
// }
|
||||
/* USER CODE END USART2_IRQn 0 */
|
||||
HAL_UART_IRQHandler(&huart2);
|
||||
@@ -313,7 +313,7 @@ void UART4_IRQHandler(void)
|
||||
// if (__HAL_UART_GET_FLAG(&huart4, UART_FLAG_IDLE))
|
||||
// {
|
||||
// __HAL_UART_CLEAR_IDLEFLAG(&huart4);
|
||||
// COM_Uart4.Rx_IdleInt(&COM_Uart4);
|
||||
// com_uart4.Rx_IdleInt(&com_uart4);
|
||||
// }
|
||||
/* USER CODE END UART4_IRQn 0 */
|
||||
HAL_UART_IRQHandler(&huart4);
|
||||
|
||||
Reference in New Issue
Block a user