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 -2
View File
@@ -110,7 +110,7 @@ void UART_Interrupt_Init(void)
*
* @return none
* */
void BSP_Uart_Init(void)
void BSP_Uart_Init(uint32_t baudrate )
{
USART_InitTypeDef USART_InitStructure = {0};
@@ -131,7 +131,7 @@ void BSP_Uart_Init(void)
RCC_APB1PeriphClockCmd(RCC_APB1Periph_USART2, ENABLE);
USART_InitStructure.USART_BaudRate = BAUD_RATE;
USART_InitStructure.USART_BaudRate = baudrate;
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
USART_InitStructure.USART_StopBits = USART_StopBits_1;
USART_InitStructure.USART_Parity = USART_Parity_No;