Ertos FAQ
What is ertos?
Ertos, which is short for emulated real-time operating system, is a MS Windows dll to emulate most of the real-time operating system on Windows environment. It supports most of the real-time OS primitives such as task, timer, interrupt, event, mutex, semaphore, queue, memory pool, etc. It exactly emulates the preemptive task scheduling and nested interrupt handling.
What is the benefit to use ertos?
By using ertos dll, real-time embedded system software engineers can develop and test most of the modules or components of the real-time software in advance. The edit-link-debug cycle is much shorter in Windows or Unix environment than that in specific hardware platform IDE. Hardware platform instability is a big headache for software engineers at early stage of any embedded system project, and it wastes a lot of development time to tackle those issues.
How to use ertos?
Suppose you have already have a real-time embedded system software and you want to use ertos to create a simulation in Windows environment. Here is the steps to do:
Identify the RTOS that your system is using.
Map the RTOS APIs to ertos APIs
List all of the interrupts that happen in your system
Write each interrupt hardware simulation routine, and hook it up with the existing isr by using er_setup_isr() at the startup code.
For all the I/O operation, either stub it out or simulate it, depending on how much you want to simulate them.
Is there any example that I can follow?
The example is still under construction.