yabo国际娱乐对话半导体客户支持-UART通信中断 https://support.dialog-semiconductor.com/resource-keywords/uart-communication-interrupt EN 如何在UART通信中检测中断 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-软件/如何在uart期间检测中断

Hello support team!

Would you please tell me about interrupt handling during UART communication?

File: demo_uart_os.c
Function: ad_uart_read

Now I use it as follows. (Loop processing)

{
cnt = ad_uart_read (dev, buf, 10, 5000);
if (cnt> 0) {

}
}

Q1) How can I handle notification for receiving interrupts when data is received in the buffer
instead of continuing to read in the loop (polling process) as described above??

Q2)Is it possible to get both interrupts of UART1 and UART2?
Would you please let me know the setting if possible.

Regards,

Jun-ichi

Device: 
2017年9月4日星期一09:16:19+0000 Tobe君一 88986在https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-软件/如何在uart注释期间检测中断