From 22fe505a817d26c5b88dae4f602b658498a8a18e Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 21 Jan 2009 11:32:31 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@655 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- docs/ch.txt | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'docs/ch.txt') diff --git a/docs/ch.txt b/docs/ch.txt index 0ae4eb61b..74436d6b5 100644 --- a/docs/ch.txt +++ b/docs/ch.txt @@ -192,7 +192,28 @@ * * @section thread_states Threads States * The image shows how threads can change their state in ChibiOS/RT.
- * @image html states.png + * @dot + digraph example { + /*rankdir="LR";*/ + node [shape=circle, fontname=Helvetica, fontsize=8, fixedsize="true", width="0.75", height="0.75"]; + start [label="Start", style="bold"]; + run [label="Running"]; + ready [label="Ready"]; + suspend [label="Suspended"]; + sleep [label="Sleeping"]; + stop [label="Stop", style="bold"]; + start -> suspend [label="chThdInit()", fontname=Helvetica, fontsize=8, constraint=false]; + start -> run [label="chThdCreate()", fontname=Helvetica, fontsize=8]; + start -> ready [label="chThdCreate()", fontname=Helvetica, fontsize=8]; + run -> ready [dir="both", label="Reschedulation", fontname=Helvetica, fontsize=8]; + suspend -> run [label="chThdResume()", fontname=Helvetica, fontsize=8]; + suspend -> ready [label="chThdResume()", fontname=Helvetica, fontsize=8]; + run -> sleep [label="chSchGoSleepS()", fontname=Helvetica, fontsize=8]; + sleep -> run [label="chSchWakepS()", fontname=Helvetica, fontsize=8]; + sleep -> ready [label="chSchWakepS()", fontname=Helvetica, fontsize=8]; + run -> stop [label="chThdExit()", fontname=Helvetica, fontsize=8]; + } + * @enddot * * @section priority Priority Levels * Priorities in ChibiOS/RT are a contiguous numerical range but the initial @@ -246,6 +267,7 @@ * - @subpage article_atomic * - @subpage article_saveram * - @subpage article_interrupts + * - @subpage article_timing */ /** @} */ -- cgit v1.2.3