Embedded Systems
rtosdd.txt
Associated article: Device Drivers & Real-Time Systems
Tags: Embedded Systems
Published source code accompanying the article by Robert Krten in which he examines two radically different device drivers and their implementation under the QNX Software's QNX 4 real-time operating system. Also see RTOSDD.ZIP.
Device Drivers & Real-Time Systems
by Robert Krten
Example 1:
while (!done) {
if (inpw (FIFOport) & S_FIFOFull) {
delay (1);
} else {
outpw (FIFOport, buf [bufptr++]);
if (bufptr >= BlockSize) {
done = 1;
}
}
}
1


