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