mirror of
https://github.com/avem-labs/Avem.git
synced 2023-09-01 15:18:49 +08:00
fix: (NVIC) Removed
This commit is contained in:
parent
2746def644
commit
c1835e55d4
@ -32,9 +32,6 @@ void uart_init(unsigned int pclk2, unsigned int bound) {
|
||||
|
||||
USART1->SR; //Read Reg SR to Clean TXE and TE,(Reset value: 0x00C0)
|
||||
|
||||
SCB->AIRCR &= 0x05FAF8FF; // AIRCE Key: 0x05FA
|
||||
SCB->AIRCR |= 0x05FA0400; // Set up group value
|
||||
|
||||
NVIC_EnableIRQ(USART1_IRQn);
|
||||
NVIC_SetPriority(USART1_IRQn, 3);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user