]> mj.ucw.cz Git - home-hw.git/blobdiff - Src/main.c
Our minimalistic test file with printf
[home-hw.git] / Src / main.c
index 02220adda978003e7bc1dd0548c9177cb37f073a..ceeb92b085b1097be98e9e5b9ee4d45be71a7c99 100644 (file)
@@ -97,17 +97,17 @@ int main(void)
   MX_USART2_UART_Init();
   /* USER CODE BEGIN 2 */
 
+  run_test();
+
   /* USER CODE END 2 */
 
   /* Infinite loop */
   /* USER CODE BEGIN WHILE */
   while (1)
   {
-
   /* USER CODE END WHILE */
 
   /* USER CODE BEGIN 3 */
-
   }
   /* USER CODE END 3 */
 
@@ -212,7 +212,7 @@ static void MX_USART2_UART_Init(void)
   GPIO_InitStruct.Alternate = LL_GPIO_AF_1;
   LL_GPIO_Init(USART_RX_GPIO_Port, &GPIO_InitStruct);
 
-  USART_InitStruct.BaudRate = 38400;
+  USART_InitStruct.BaudRate = 115200;
   USART_InitStruct.DataWidth = LL_USART_DATAWIDTH_8B;
   USART_InitStruct.StopBits = LL_USART_STOPBITS_1;
   USART_InitStruct.Parity = LL_USART_PARITY_NONE;