Added slave scan state machine graph.
authorFlorian Pose <fp@igh-essen.com>
Tue, 26 Feb 2008 10:25:52 +0000
changeset 829 0d3e4246e790
parent 828 1ca40d2e6a8d
child 830 d83d92e1a919
Added slave scan state machine graph.
documentation/graphs/Makefile
documentation/graphs/fsm_slave_scan.dot
--- a/documentation/graphs/Makefile	Tue Feb 26 09:47:09 2008 +0000
+++ b/documentation/graphs/Makefile	Tue Feb 26 10:25:52 2008 +0000
@@ -5,18 +5,29 @@
 #-----------------------------------------------------------------------------
 
 GRAPHS := \
-	fsm_slave_conf.ps \
-	fsm_pdo_mapping.ps \
-	fsm_pdo_config.ps \
-	fsm_master.ps \
-	fsm_coe_map.ps
+	fsm_slave_conf \
+	fsm_slave_scan \
+	fsm_pdo_mapping \
+	fsm_pdo_config \
+	fsm_master \
+	fsm_coe_map
 
-all: $(GRAPHS)
+#-----------------------------------------------------------------------------
+
+PS = $(addsuffix .ps,$(GRAPHS))
+PDF = $(addsuffix .pdf,$(GRAPHS))
+
+#-----------------------------------------------------------------------------
+
+all: $(PDF)
 
 %.ps: %.dot
 	dot -Tps -o $@ $<
 
+%.pdf: %.ps
+	ps2pdf $<
+
 clean:
-	@rm -f *.ps
+	@rm -f *.ps *.pdf
 
 #-----------------------------------------------------------------------------
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/documentation/graphs/fsm_slave_scan.dot	Tue Feb 26 10:25:52 2008 +0000
@@ -0,0 +1,28 @@
+
+/* $Id$ */
+
+digraph slavescan {
+    size="7,9"
+    center=1
+	ratio=fill
+
+    start -> address [weight=10]
+
+    address -> error
+    address -> state [weight=10]
+
+    state -> error
+    state -> base [weight=10]
+
+    base -> error
+    base -> datalink [weight=10]
+
+    datalink -> error
+    datalink -> eeprom_size [weight=10]
+
+    eeprom_size -> error
+    eeprom_size -> eeprom_data [weight=10]
+
+    eeprom_data -> error
+    eeprom_data -> end [weight=10]
+}