From 41de0396dfe5cd2ff45f152bdcb395b362c81f07 Mon Sep 17 00:00:00 2001 From: Fabian Schieder Date: Fri, 20 Feb 2026 21:24:40 +0000 Subject: [PATCH] main.c aktualisiert --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 100d533..d736265 100644 --- a/main.c +++ b/main.c @@ -98,7 +98,7 @@ void uart2_init(void) USART2->CR1 &= ~0x1000; // M:--> Start bit, 8 Data bits, n Stop bit USART2->CR1 &= ~0x0400; // PCE: 0: Parity control disabled USART2->CR2 &= ~0x3000; // STOP: 00: 1 Stop bit afungsbil - USART2->BRR = 0x1D4C; // set Baudrate to 9600 Baud (SysClk 72Mhz) + USART2->BRR = 0x0753; // set Baudrate to 9600 Baud (SysClk 72Mhz) USART2->CR1 |= 0x0C; // enable Receiver and Transmitter USART2->CR1 |= 0x2000; // Set USART Enable Bit }