开发者

RTOS: windows ce: can I perform all my calculations in kernel mode for a PID control loop?

开发者 https://www.devze.com 2023-04-07 13:58 出处:网络
In Windows CE, 开发者_StackOverflow社区can I do all my calucation for a PID(Proportional-Integral-Derivative) control loop in \"kernel mode\" and avoid using \"user mode\"? I will transfering data ove

In Windows CE, 开发者_StackOverflow社区can I do all my calucation for a PID(Proportional-Integral-Derivative) control loop in "kernel mode" and avoid using "user mode"? I will transfering data over TCP=IP to another machine for the end result to keep the system in "kernel mode". My understanding is that switching from "kernel mode" to "user mode" and vice versa costs time..ie 40us round trip.


I think you can do that, you should call SetKMode function to put your thread out or in of kernel mode. More details in these two blog posts from CE team: What is Kernel Mode? and Inside Windows CE API Calls.

0

精彩评论

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