From c1835e55d465c7d6813bdd6b046eb3ff6bd007a1 Mon Sep 17 00:00:00 2001 From: but0n Date: Tue, 2 May 2017 12:22:44 +0800 Subject: [PATCH] fix: (NVIC) Removed --- libs/source/uart.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libs/source/uart.c b/libs/source/uart.c index 4b339d6..3ac6952 100644 --- a/libs/source/uart.c +++ b/libs/source/uart.c @@ -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);