diff --git a/bsp/stm32f107/usart.c b/bsp/stm32f107/usart.c index bc05e93c77..5c7144ec87 100644 --- a/bsp/stm32f107/usart.c +++ b/bsp/stm32f107/usart.c @@ -186,9 +186,6 @@ static void NVIC_Configuration(void) { NVIC_InitTypeDef NVIC_InitStructure; - /* Configure the NVIC Preemption Priority Bits */ - NVIC_PriorityGroupConfig(NVIC_PriorityGroup_0); - #ifdef RT_USING_UART1 /* Enable the USART1 Interrupt */ NVIC_InitStructure.NVIC_IRQChannel = USART1_IRQn; diff --git a/bsp/stm32f10x/usart.c b/bsp/stm32f10x/usart.c index bc05e93c77..5c7144ec87 100644 --- a/bsp/stm32f10x/usart.c +++ b/bsp/stm32f10x/usart.c @@ -186,9 +186,6 @@ static void NVIC_Configuration(void) { NVIC_InitTypeDef NVIC_InitStructure; - /* Configure the NVIC Preemption Priority Bits */ - NVIC_PriorityGroupConfig(NVIC_PriorityGroup_0); - #ifdef RT_USING_UART1 /* Enable the USART1 Interrupt */ NVIC_InitStructure.NVIC_IRQChannel = USART1_IRQn;