| | |
| | | void DMA1_Channel2_3_IRQHandler(void)
|
| | | {
|
| | | /* USER CODE BEGIN DMA1_Channel2_3_IRQn 0 */
|
| | | Uart1DmaInts++;
|
| | | Uart1Stat.DMACount++;
|
| | | if (LL_DMA_IsActiveFlag_TC2(DMA1))
|
| | | {
|
| | |
|
| | |
| | | else
|
| | | {
|
| | | Uart1Stat.DMASendLen=0;
|
| | | Uart1Stat.Sending=0;
|
| | | Uart1Stat.bSending=0;
|
| | | }
|
| | | }
|
| | | /* USER CODE END DMA1_Channel2_3_IRQn 0 */
|
| | |
| | | void DMA1_Channel4_5_IRQHandler(void)
|
| | | {
|
| | | /* USER CODE BEGIN DMA1_Channel4_5_IRQn 0 */
|
| | | Uart2DmaInts++;
|
| | | Uart2Stat.DMACount++;
|
| | | if (LL_DMA_IsActiveFlag_TC4(DMA1))
|
| | | {
|
| | | LL_DMA_ClearFlag_TC4(DMA1);
|
| | |
| | | */
|
| | | {
|
| | | Uart2Stat.DMASendLen=0;
|
| | | Uart2Stat.Sending=0;
|
| | | Uart2Stat.bSending=0;
|
| | | }
|
| | | }
|
| | | /* USER CODE END DMA1_Channel4_5_IRQn 0 */
|
| | |
| | | Uart1Stat.OverRunCount++;
|
| | | }
|
| | | if (LL_USART_IsEnabledIT_IDLE(USART1)&&LL_USART_IsActiveFlag_IDLE(USART1))
|
| | | {//接收完成
|
| | | {//接收完成
|
| | | LL_USART_ClearFlag_IDLE(USART1);
|
| | | Uart1RecvDone();
|
| | | }
|
| | | /* USER CODE END USART1_IRQn 0 */
|
| | | /* USER CODE BEGIN USART1_IRQn 1 */
|
| | | if (LL_USART_IsActiveFlag_TC(USART1))
|
| | | {//发送完成
|
| | | {//发送完成
|
| | | LL_USART_ClearFlag_TC(USART1);
|
| | | Uart1SendDone();
|
| | | }
|
| | |
| | | Uart2Stat.OverRunCount++;
|
| | | }
|
| | | if (LL_USART_IsEnabledIT_IDLE(USART2)&&LL_USART_IsActiveFlag_IDLE(USART2))
|
| | | {//接收完成
|
| | | {//接收完成
|
| | | LL_USART_ClearFlag_IDLE(USART2);
|
| | | Uart2RecvDone();
|
| | | }
|
| | | /* USER CODE END USART2_IRQn 0 */
|
| | | /* USER CODE BEGIN USART2_IRQn 1 */
|
| | | if (LL_USART_IsActiveFlag_TC(USART2))
|
| | | {//发送完成
|
| | | {//发送完成
|
| | | LL_USART_ClearFlag_TC(USART2);
|
| | | Uart2SendDone();
|
| | | }
|