main.c aktualisiert
This commit is contained in:
parent
73453f98c7
commit
21d69d24b6
2
main.c
2
main.c
@ -86,7 +86,7 @@ void PortConfig(void)
|
|||||||
|
|
||||||
void uart2_init(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
|
RCC->APB1ENR |= 0x20000; // UART2 Taktversorgung
|
||||||
|
|
||||||
GPIOA->CRL &= 0xFFFFF0FF;
|
GPIOA->CRL &= 0xFFFFF0FF;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user