添加串口中断请求
void SdkEvalComUartIrqConfig(FunctionalState EnableIrq)
添加中断接收处理函数
文件:BlueNRG1_it.c
void UART_Handler(void)
{
if (UART_GetITStatus(UART_IT_RX) != RESET)
{
/* Clear the interrupt */
UART_ClearITPendingBit(UART_IT_RX);
/* Echo of received data */
UART_SendData((UART_ReceiveData() & 0xFF));
}
}
此函数实现功能为,收到数据,立即通过串口发送出去