문제

I have an existing embedded source code which runs directly on a microcontroller with no operating system. I need to port the code to run on a specific RTOS.

Are there any guidelines in where to start when attempting wuch a thing ? Resources, best practices, and other insight will be much appriciated.

도움이 되었습니까?

해결책

RTOS preemptive multitasking is all about I/O performance. You need drivers that can make a thread ready when I/O is complete, eg. by signaling a semaphore. Nothing else is remotely as important.

Sadly, this usually means a system redesign to eliminate the performance-crippling polling that existed before :((

다른 팁

First of all, the RTOS has to be ported on your microcontroller. If the RTOS already supports your microcontroller, then next would be tweaking your code for the RTOS. For that you need to refer the user guide of RTOS.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top