main.c aktualisiert

This commit is contained in:
Fabian Schieder 2026-02-20 21:24:40 +00:00
parent dc67c865d1
commit 41de0396df

2
main.c
View File

@ -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
}