我用keil新建了一个uart的工程,打开了uart1的接收发送中断,但是实际调试过程中发现,并没有进入void USART1_IRQHandler(void),请问有谁知道怎么配置吗?
uart1我的初始化如下:
USART_StructInit(&USART1_InitStructure);
USART1_InitStructure.BaudRate = 115200;
USART1_InitStructure.WordLength = USART_WL_8B;
USART1_InitStructure.StopBits = USART_STPB_1;
USART1_InitStructure.Parity = USART_PE_NO;
USART1_InitStructure.HardwareFlowControl = USART_HFCTRL_NONE;
USART1_InitStructure.Mode = USART_MODE_RX | USART_MODE_TX;
USART_Init(USART1, &USART1_InitStructure);
USART_ConfigInt(USART1, USART_INT_RXDNE, ENABLE);
USART_ConfigInt(USART1, USART_INT_TXDE, ENABLE);
USART_Enable(USART1, ENABLE);
|