Building Your own RtOS

Had You ever felt that there is something wrong with Your embedded code? Had You ever felt that there must be an easy way to make program to do many things at the same time?

Of course You had.

You might even have thought about embedded Linux, “free RtOS” or maybe embedded Windows.

And You rejected all of them because the “Operating System” is heavy, clumsy, slow and energy hungry. While all You have is a small 8 or 16 bit MCU.

Then, my dear boy or girl, why not to try to make one by Yourself? Nice, clean, tidy and taking up to few tens of assembler lines operating system?

Lets take a look:

RtOS – do You need it?
RtOS – what is “real time”?
RtOS – multimedia==RtOS? No.
RtOS – multitasking?
RtOS – When You need it?
RtOS – how do I benefit from it?
RtOS – implementing it, step 1. Task switch.
RtOS -implementing it: be cooperative
RtOS-implementing it: tasks table.
RtOS-implementing it: WaitFor
RtOS – implementing it: conserving power
Watchdogs, how to not use it”
RtOS – Stacks are not funny
RtOS: Protect Your stacks
RtOS:Heart-beat timers
RtOS + cooperative interrupts… Ehmm… say what?!
Note: I might be forgetful and not update this page. Check the RtOS/Multitasking tag to not miss anything related.