update 1.8

This commit is contained in:
qiyongshuang
2023-09-06 10:08:11 +08:00
parent b79c6ac80d
commit 64be955461
760 changed files with 42517 additions and 30957 deletions
+2 -1
View File
@@ -10,7 +10,6 @@
* microcontroller manufactured by Nanjing Qinheng Microelectronics.
*******************************************************************************/
#include "ch32v20x_it.h"
#include <wchnet.h>
#include "eth_driver.h"
#include "bsp_uart.h"
@@ -87,6 +86,8 @@ void DMA1_Channel7_IRQHandler(void)
DMA_Cmd(DMA1_Channel7,DISABLE);
uart_data_t.uart_tx_dma_state = IDLE;
uart_data_t.tx_read++;
/* Prevent access from out-of-bounds */
uart_data_t.tx_read = (uart_data_t.tx_read)%UART_TX_BUF_NUM;
uart_data_t.tx_remainBuffNum++;
DMA_ClearITPendingBit(DMA1_IT_TC7);
}