fix usart irq handler not in safe area

This commit is contained in:
acevest
2020-01-09 23:04:28 +08:00
parent bce32faac2
commit a6cd872df1
6 changed files with 45 additions and 36 deletions

View File

@@ -69,7 +69,7 @@ void usart1_init(int baud)
void usart2_init(int baud)
{
eclic_irq_enable(USART2_IRQn, 1, 0);
//eclic_irq_enable(USART2_IRQn, 1, 0);
/* enable GPIO clock */
rcu_periph_clock_enable(RCU_GPIOB);
@@ -98,7 +98,7 @@ void usart2_init(int baud)
usart_enable(USART2);
usart_interrupt_enable(USART2, USART_INT_RBNE);
//usart_interrupt_enable(USART2, USART_INT_RBNE);
}