雷竞技电竞平台对话半导体客户支持-异步使用 https://support.dialog-semiconductor.com/resource-keywords/asynchronous-use Uart适配器异步 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-hardware-device-reference-designs/uart-adapter < 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:Forum" property="rdfs:label skos:prefLabel" datatype="">Dialog Smartbond Bluetooth Low Energy - Hardware (device &参考设计)< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >看着ad_uart.c我可以看到以下的代码:< / p > < p >空白ad_uart_write_async (uart_device dev, const char * wbuf size_t wlen,
uart_bus_dynamic_data *data = device->bus_data;

if (((device->flags &
}
data->write_cb = cb;
data->write_cb_data = user_data;

hw_uart_send(device->bus_id, (const uint8_t *) wbuf, wlen, ad_uart_write_callback,
}当设置AD_UART_DEVICE_FLAGS_LOCKING_ASYNC时,似乎调用了"ad_uart_bus_acquire_ex(..)"函数。

我对这段代码的解释是,当使用async call函数时,如果设置了设备标志,我不需要自己调用ad_uart_bus_acquire_ex(..)。

如何配置UART或适配器,以设置此标志?< / p > < p > < / p > < p > < / p >问好< p > Dieter < / 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 / aduart typeof =“skos:概念”属性= " rdfs: labelskos: prefLabel”数据类型= " " > ad_uart < / > < / div > < div class = " field-item古怪”> < a href = " / resource-keywords / asynchronous-use”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " >异步使用< / > < / div > < div class =”field-item甚至“> < a href = " / resource-keywords /旗帜”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " >标记< / > < / 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”“=“skos:概念”属性=“rdfs: label skos: prefLabel” datatype="">DA1468x Tue, 21 Jan 2020 20:07:55 +0000 迪特尔•福尔克 340998年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-hardware-device-reference-designs/uart-adapter#comments