Comments (4)
可否跟 rbb 有些结合呢
https://www.rt-thread.org/document/api/group__ring__block__buffer.html#details
from ppp_device.
可否跟 rbb 有些结合呢
https://www.rt-thread.org/document/api/group__ring__block__buffer.html#details
这不错,适合应用层做缓存。这个场景使用是不是有点复杂?这里其实不需要太复杂,只需要DMA发送数据,静态分配一个1500字节的内存就好了,保证DMA发送数据时数据不被破坏就好。
rbb确实很好用,我在其他项目里用了,而且rbb的使用场景也很广泛,只是这个场景貌似不需要。
from ppp_device.
主要感觉这个功能放在串口设备层去实现会更加通用一些,当时设计 RBB 最早也是考虑到了 DMA 发送的需求。
from ppp_device.
主要感觉这个功能放在串口设备层去实现会更加通用一些,当时设计 RBB 最早也是考虑到了 DMA 发送的需求。
是呢,最初接触到RTT也发现这个问题,串口驱动层对DMA发送的处理逻辑对应用层不是特别友好,尤其是新手,可能会直接使用rt_device_write
写数据,函数返回后就直接复用了,导致数据发送出错。在实际项目中,串口这块基本上都需要再封一层使用(这里使用rbb就非常方便)。
from ppp_device.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ppp_device.