volatile uint8_t uart3_p = 0,cd=0;
uint8_t uart3_buff[255], TAB[10];
void USART3_IRQHandler(void)
{
if(uart3_p<255)
{
if(USART_GetITStatus(USART3, USART_IT_RXNE) != RESET)
{
uart3_buff[uart3_p] = USART_ReceiveData(USART3);
uart3_p++;
}
}USART3_printf( USART3,&quot;\r\n %s \r\n&quot;,uart3_buff);
}
通过jtag看到uart3_buff[]中只收到前2个字符
这是为什么? |