diff --git a/main.c b/main.c index e71b807..6c07ceb 100644 --- a/main.c +++ b/main.c @@ -86,7 +86,7 @@ void PortConfig(void) void uart2_init(void) { - RCC->APB2ENR |= RCC_APB2ENR_AFIOEN | RCC_APB2ENR_IOPAEN; + RCC->APB2ENR |= RCC_APB2ENR_AFIOEN | RCC_APB2ENR_IOPAEN; // 0x4 RCC->APB1ENR |= 0x20000; // UART2 Taktversorgung GPIOA->CRL &= 0xFFFFF0FF;