开发者

Windows CE (RTOS) class-libraries for latency of interrupts and threads and USB?

开发者 https://www.devze.com 2023-03-29 17:25 出处:网络
I am getting s开发者_如何学Ctarted in working with Windows CE to utilize RTOS to reduce latency concerns with interrupts and threads and USB.What class-libraries(visual c++) can you point me to that w

I am getting s开发者_如何学Ctarted in working with Windows CE to utilize RTOS to reduce latency concerns with interrupts and threads and USB. What class-libraries(visual c++) can you point me to that would be good to have learned well to speed up the learning curve?

Thanks


That's a really, really broad question. The most important piece of advice I'll give you is that if you're after determinism and speed (your reference to an RTOS leads me to think you consider these important) then you need to be aware that any memory allocation or deallocation in a piece of code makes it non-deterministic.

C++ classes often have allocations and deallocations buried in them, so whatever you choose (and whatever you write), use them wisely. Sometimes they'll allow you to provide custom allocators (e.g. Boost) which you can use to just pull memory from an already allocated heap you create somewhere.

Keep the real-time parts of the code as small and simple as possible.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号