日常更新
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user