1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8<TITLE>OS Demos</TITLE> 9</HEAD> 10<BODY> 11<H1>Operating System (OS) Sample Demos</H1> 12 13<H2>Location</H2> 14<P><CODE>$REVOLUTION_SDK_ROOT/build/demos/osdemo</CODE></P> 15 16<H2>Compilation</H2> 17<P>Navigate to <code>$REVOLUTION_SDK_ROOT/build/demos/osdemo</code> and enter <code>make</code>. The executable (<code>elf</code>) file will be generated under <code>$REVOLUTION_SDK_ROOT/build/demos/osdemo/bin/RVL/</code>.</P> 18 19<H2>Execution</H2> 20<P>Go to <code>$REVOLUTION_SDK_ROOT/build/demos/osdemo/bin/RVL/</code> and perform one of the following:</P> 21<ul> 22<li>?To simply run the application, execute the <code>ndrun</code> script, using the ELF file as an argument.</li> 23<li>?If you want to debug with CodeWarrior, run <CODE>ide</CODE> with the <code>.elf</code> file as an argument.</li> 24</ul> 25 26<H2>Description</H2> 27<TABLE class="demo_list" border="1" > 28 <TBODY> 29 <TR> 30<TH nowrap>allocdemo1-gettingmemory</TH> 31<TD>Shows how to get memory from the arena.</TD> 32 </TR> 33 <TR> 34<TH nowrap>allocdemo2-oneheap</TH> 35<TD>Shows how to set up and use one heap.</TD> 36 </TR> 37 <TR> 38<TH nowrap>allocdemo3-multipleheaps</TH> 39<TD>Shows how to set up and use multiple heaps.</TD> 40 </TR> 41 <TR> 42<TH nowrap>cachedemo</TH> 43<TD>Demonstrates different ways of viewing memory by cached and uncached access.</TD> 44 </TR> 45 <TR> 46<TH nowrap>errordemo</TH> 47<TD>Shows how to set up and use the error handler.</TD> 48 </TR> 49 <TR> 50<TH nowrap>idlefunctiondemo</TH> 51<TD>Shows a trivial example of a background task.</TD> 52 </TR> 53 <TR> 54<TH nowrap>lockedcachedemo1</TH> 55<TD>High-level locked cache API demo.</TD> 56 </TR> 57 <TR> 58<TH nowrap>lockedcachedemo2</TH> 59<TD>Low-level locked cache API demo.</TD> 60 </TR> 61 <TR> 62<TH nowrap>stopwatchdemo</TH> 63<TD>Counts how long a matrix concatenation takes.</TD> 64 </TR> 65 <TR> 66<TH nowrap>threaddemo1</TH> 67<TD>Shows how to create a new thread and how to resume it.</TD> 68 </TR> 69 <TR> 70<TH nowrap>threaddemo2</TH> 71<TD>Shows how to create a new thread and how to join with it.</TD> 72 </TR> 73 <TR> 74<TH nowrap>threaddemo3</TH> 75<TD>Shows how to use a message queue to synchronize threads.</TD> 76 </TR> 77 <TR> 78<TH nowrap>threaddemo4</TH> 79<TD>Shows how to use a mutex to synchronize threads.</TD> 80 </TR> 81 <TR> 82<TH nowrap>threaddemo5</TH> 83<TD>Shows how to use condition variables to synchronize threads.</TD> 84 </TR> 85 <TR> 86<TH nowrap>timerdemo</TH> 87<TD>Shows how to set up and use an alarm.</TD> 88 </TR> 89 <TR> 90<TH nowrap>fontdemo1</TH> 91<TD>Shows how to use the IPL ROM font with the GX library.</TD> 92 </TR> 93 <TR> 94<TH nowrap>fontdemo2</TH> 95<TD>Shows how to use compressed IPL ROM font image.</TD> 96 </TR> 97 <TR> 98<TH nowrap>fpe</TH> 99<TD>Shows how to use the <code><a href="../Error/OSSetErrorHandler.html">OS_ERROR_FPE</a></code> error hander.</TD> 100 </TR> 101 <TR> 102<TH nowrap>panic</TH> 103<TD>Shows how to hook the SDK assertion message to show the assertion failure message on TV screen using the <code>OSFatal</code> function.</TD> 104 </TR> 105 <TR> 106<TH nowrap>report</TH> 107<TD>Shows how to hook the <code>OSReport</code> function to show the output messages on TV screen.</TD> 108 </TR> 109 <TR> 110<TH nowrap>alarm</TH> 111<TD>Sets user data in the alarm and shows how to obtain data after the alarm goes off.</TD> 112 </TR> 113 <TR> 114<TH nowrap>cppsetupdemo</TH> 115<TD>Shows how to override the <CODE>new</CODE> and <CODE>delete</CODE> operators when developing in C++.</TD> 116 </TR> 117 <TR> 118<TH nowrap>crcdemo</TH> 119<TD>Shows the CRC calculation method.</TD> 120 </TR> 121 </TBODY> 122</TABLE> 123 124<H2>See Also</H2> 125<P class="reference"> 126<A href="../toc.html" target="contents">OS APIs</A> 127</P> 128 129<H2>Revision History</H2> 130<P> 1312008/05/19 Added the <CODE>crcdemo</CODE> demo.<br>2006/11/06 Added the <CODE>cppsetupdemo</CODE> demo.<br>2006/07/xx Added the <CODE>alarm</CODE> demo.<br>2006/03/01 Initial version. 132</P> 133 134<hr><p>CONFIDENTIAL</p></body> 135</HTML>