日常更新

This commit is contained in:
Glz
2024-06-16 21:52:42 +08:00
parent 3fe85dc7db
commit b155d3ce14
18 changed files with 205 additions and 108 deletions

View File

@@ -92,6 +92,10 @@ void USART1_IRQHandler(void)
void USART2_IRQHandler(void)
{
if (USART_GetITStatus(USART2, USART_IT_RXNE) != RESET) {
// uint8_t data = (uint8_t)USART_ReceiveData(USART2);
// by_frame_parse_uart_handle(data);
USART_ReceiveData(USART2);
NVIC_SystemReset();
USART_ClearITPendingBit(USART2, USART_IT_RXNE);
}