stdcall stdcall - 1 year ago 77
C Question

Porting exisiting embedded source code to RTOS

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.

Answer Source

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 :((

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download