yabo国际娱乐对话半导体客户支持- da1468x uart2 https://support.dialog-semiconductor.com/resource-keywords/da1468x-uart2 使用基于UART2的中断 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/using-uart2-interrupt-based < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >你好,我使用自定义板基于DA1468x和我使用UART 1和UART 2在我的项目。

UART 1是用于printf和我想使用UART2通信之间的另一个板DA1468x基于。

写入不是问题,我已经成功写入字节到UART2。

问题是我应该如何从uart读取字节。我应该在另一个任务中轮询UART2读取还是应该使用中断。在我以前的经验对其他微控制器,我已经使用基于中断uart接收,但在这种情况下,我感到困惑。你有什么建议?

如果基于中断的方法是推荐的,所以有任何示例代码可用于中断分配给uart2接收,因为我无法找到到目前为止。< / p > < p > < / p > < p >谢谢< / p > < / div > < / div > < / div > < div class =”字段field-name-field-forum-keywords field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >关键词:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / resource-keywords / da1468x-uart2 typeof =“skos:概念”属性= " rdfs: labelskos: prefLabel”数据类型= " " > da1468x uart2 < / > < / div > < / div > < / div > < div class =”字段field-name-field-device field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >设备:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / forum-post-device / da1468x typeof =“skos:概念”属性= " rdfs: label skos:prefLabel" datatype="">DA1468x 2019年5月20日星期一11:50:47 +0000 mahmed106 306495年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/using-uart2-interrupt-based#comments