Use 115.2kbaud UART
This commit is contained in:
@ -18,12 +18,6 @@
|
||||
/* USER CODE END Header */
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
#include "main.h"
|
||||
#include "stm32f3xx_hal.h"
|
||||
#include "stm32f3xx_hal_def.h"
|
||||
#include "stm32f3xx_hal_gpio.h"
|
||||
#include "stm32f3xx_hal_i2c.h"
|
||||
#include "stm32f3xx_hal_uart.h"
|
||||
#include <string.h>
|
||||
|
||||
/* Private includes ----------------------------------------------------------*/
|
||||
/* USER CODE BEGIN Includes */
|
||||
@ -129,6 +123,7 @@ int main(void) {
|
||||
uint16_t temperatures[N_SENSORS];
|
||||
while (1) {
|
||||
/* USER CODE END WHILE */
|
||||
|
||||
/* USER CODE BEGIN 3 */
|
||||
GPIO_PinState error_led = (HAL_GetTick() - last_error < ERROR_LED_TIME)
|
||||
? GPIO_PIN_SET
|
||||
@ -252,7 +247,7 @@ static void MX_USART2_UART_Init(void) {
|
||||
|
||||
/* USER CODE END USART2_Init 1 */
|
||||
huart2.Instance = USART2;
|
||||
huart2.Init.BaudRate = 38400;
|
||||
huart2.Init.BaudRate = 115200;
|
||||
huart2.Init.WordLength = UART_WORDLENGTH_8B;
|
||||
huart2.Init.StopBits = UART_STOPBITS_1;
|
||||
huart2.Init.Parity = UART_PARITY_NONE;
|
||||
|
||||
Reference in New Issue
Block a user