User avatar
Arjan
Posts: 261
Joined: Sat Sep 08, 2012 1:59 pm

RIOS : a task scheduler written entirely in C

Thu Dec 20, 2012 6:45 pm

Hi,

I've found an interesting OS for educational purposes --> http://www.riosscheduler.org/
RIOS is a task scheduler written entirely in C that:
* Is simple and understandable for the beginning embedded programmer
* Can provide basic non-preemptive or preemptive multitasking capabilities for cooperative tasks
* Requires only a few dozen lines of code
The following functions are platform specific :

* TimerOn(): Turns the timer peripheral on.
* TimerSet(int): Set the number of milliseconds between timer interrupts
* TimerISR(int): The timer interrupt handler.

Has anyone tried to implement the above functions? Or has planned to do so?

Thanks. Regards, Arjan
http://www.raspberrypi-dmx.org/
Open Source DMX/RDM/MIDI/OSC/Art-Net/sACN solutions

pygmy_giant
Posts: 1562
Joined: Sun Mar 04, 2012 12:49 am

Re: RIOS : a task scheduler written entirely in C

Thu Dec 20, 2012 7:21 pm

Thanks Arjun - this could be what I am looking for for my unfinigshed balancing robot. I need some kind of task scheduler that can check the bots posture every 10us but also alow it to perform tasks that might take longer than 10us. I wil investigate further.

Joeboy
Posts: 24
Joined: Wed Oct 31, 2012 11:59 am

Re: RIOS : a task scheduler written entirely in C

Thu Dec 20, 2012 11:02 pm

For the timer / interrupt functions you might want to have a look at https://github.com/dwelch67/raspberrypi ... /blinker07 and possibly other examples in dwelch's awesome repo, if you haven't found it already.

Return to “Bare metal, Assembly language”