是这样设置的么?
串口设置
USART_InitStructure.USART_BaudRate = 115200;
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
USART_InitStructure.USART_StopBits = USART_StopBits_1;
USART_InitStructure.USART_Parity = USART_Parity_No;
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
USART_InitStructure.USART_Mode = [img]USART_Mode_Rx| USART_Mode_Tx;
USART_Init(USART1, &USART_InitStructure);
输出设置
USART1_printf(USART1, "1");
USART1_printf(USART1, "1");
USART1_printf(USART1, "1");
这样的输出一个字符,是多少个bit量,一共耗时多长呢
|