OS Sample Demo

Location

$REVOLUTION_SDK_ROOT/build/demos/osdemo

Compilation

Navigate to $REVOLUTION_SDK_ROOT/build/demos/osdemo and enter "make". The executable file (elf file) will be generated under $REVOLUTION_SDK_ROOT/build/demos/osdemo/bin/RVL/.

Execution

Go to $REVOLUTION_SDK_ROOT/build/demos/osdemo/bin/RVL/ and perform one of the following:

Description

allocdemo1 Shows how to get memory from the arena.
allocdemo2 Shows how to set up and use one heap.
allocdemo3 Shows how to set up and use multiple heaps.
cachedemo Demonstrates the different ways in which memory can be viewed by cached and uncached access.
errordemo Shows how to set up and use the error handler.
idlefunctiondemo Shows a trivial example of a background task.
lockedcachedemo1 High-level locked cache API demo.
lockedcachedemo2 Low-level locked cache API demo.
stopwatchdemo Counts how long a matrix concatenation takes.
threaddemo1 Shows how to create a new thread and how to resume it.
threaddemo2 Shows how to create a new thread and how to join with it.
threaddemo3 Shows how to use a message queue to synchronize threads.
threaddemo4 Shows how to use a mutex to synchronize threads.
threaddemo5 Shows how to use condition variables to synchronize threads.
timerdemo Shows how to set up and use an alarm.
fontdemo1 Shows how to use IPL ROM font with GX API.
fontdemo2 Shows how to use compressed IPL ROM font image.
fpe Shows how to use the OS_ERROR_FPE error hander.
panic Shows how to hook the SDK assertion message to show the assertion failure message on TV screen using the OSFatal function.
report Shows how to hook the OSReport function to show the output messages on TV screen.
alarm Sets user data for the alarm and indicates how to obtain data after the alarm goes off.

See Also

OS APIs

Revision History

03/01/2006 Initial version.
8/xx/2006 Added alarm demo.


CONFIDENTIAL