Correct diagram layout to make text descriptions fit into blocks

pull/3456/head
Krzysztof 2019-04-08 10:48:41 +08:00
rodzic df61612f8f
commit 394d89e7da
1 zmienionych plików z 8 dodań i 5 usunięć

Wyświetl plik

@ -64,27 +64,30 @@ Behavior of panic handler is affected by two other configuration options.
The following diagram illustrates panic handler behavior: The following diagram illustrates panic handler behavior:
.. blockdiag:: .. blockdiag::
:caption: Panic Handler Flowchart :scale: 100%
:caption: Panic Handler Flowchart (click to enlarge)
:align: center :align: center
blockdiag panic-handler { blockdiag panic-handler {
orientation = portrait; orientation = portrait;
edge_layout = flowchart; edge_layout = flowchart;
default_group_color = white; default_group_color = white;
node_width = 160;
node_height = 60;
cpu_exception [label = "CPU Exception", shape=roundedbox]; cpu_exception [label = "CPU Exception", shape=roundedbox];
sys_check [label = "Cache error,\nInterrupt WDT,\nabort()", shape=roundedbox]; sys_check [label = "Cache error,\nInterrupt WDT,\nabort()", shape=roundedbox];
check_ocd [label = "JTAG debugger\nconnected?", shape=diamond, width=160, height=80]; check_ocd [label = "JTAG debugger\nconnected?", shape=diamond, height=80];
print_error_cause [label = "Print error/\nexception cause"]; print_error_cause [label = "Print error/\nexception cause"];
use_jtag [label = "Send signal to\nJTAG debugger", shape=roundedbox]; use_jtag [label = "Send signal to\nJTAG debugger", shape=roundedbox];
dump_registers [label = "Print registers\nand backtrace"]; dump_registers [label = "Print registers\nand backtrace"];
check_coredump [label = "Core dump\nenabled?", shape=flowchart.condition]; check_coredump [label = "Core dump\nenabled?", shape=diamond, height=80];
do_coredump [label = "Core dump\nto UART or Flash"]; do_coredump [label = "Core dump\nto UART or Flash"];
check_gdbstub [label = "GDB Stub\nenabled?", shape=flowchart.condition]; check_gdbstub [label = "GDB Stub\nenabled?", shape=diamond, height=80];
do_gdbstub [label = "Start GDB Stub", shape=roundedbox]; do_gdbstub [label = "Start GDB Stub", shape=roundedbox];
halt [label = "Halt", shape=roundedbox]; halt [label = "Halt", shape=roundedbox];
reboot [label = "Reboot", shape=roundedbox]; reboot [label = "Reboot", shape=roundedbox];
check_halt [label = "Halt?", shape=flowchart.condition]; check_halt [label = "Halt?", shape=diamond, height=80];
group {cpu_exception, sys_check}; group {cpu_exception, sys_check};