From e2550e6df11558ccd6e8b95f489c0988b34347af Mon Sep 17 00:00:00 2001 From: Vasilii Chernov Date: Fri, 26 Feb 2016 10:19:58 +0100 Subject: 1. pywrap: - fix get_registers_list crash with bank != NULL - set correct python version in cmake install step 2. html_server: - merge set and get value boxes into one box - add registers bank view mode - read registers/properties values in bank/branch view mode 3. xml/test - remove cmosis registers - add multithread safe property example --- html_server/templates/registers/table_cell.html | 99 ++++++++++++++++++++++ html_server/templates/registers/table_header.html | 9 ++ html_server/templates/registers/table_scripts.html | 42 +++++++++ 3 files changed, 150 insertions(+) create mode 100644 html_server/templates/registers/table_cell.html create mode 100644 html_server/templates/registers/table_header.html create mode 100644 html_server/templates/registers/table_scripts.html (limited to 'html_server/templates/registers') diff --git a/html_server/templates/registers/table_cell.html b/html_server/templates/registers/table_cell.html new file mode 100644 index 0000000..690f052 --- /dev/null +++ b/html_server/templates/registers/table_cell.html @@ -0,0 +1,99 @@ + + {% if 'description' in register %} + {{ register.description }} + {% else %} + + {% endif %} + + + {% if 'R' in register.mode %} + + + {% if 'W' in register.mode %} + + {% endif %} + + + {% endif %} +
+ + + + + +
+ + {{ register.defvalue }} + {{ register.bank }} + + + + {% if 'range' in register %} + + + + + + + + + + +
min max
{{ register.range.min }} {{ register.range.max }}
+ + {% else %} + + {% endif %} + {% if 'values' in register %} + + + + {% for v in register['values'] %} + + {% endfor %} + +
+ + {% if 'name' in v %} + + + + + {% endif %} + {% if 'description' in v %} + + + + + {% endif %} + + + + + + + + + + + + +
Name {{v.name}}
Description {{ v.description }}
Min {{ v.min }}
Max {{ v.max }}
Value {{ v.value }}
+
+ + {% else %} + + {% endif %} + + diff --git a/html_server/templates/registers/table_header.html b/html_server/templates/registers/table_header.html new file mode 100644 index 0000000..f96ec20 --- /dev/null +++ b/html_server/templates/registers/table_header.html @@ -0,0 +1,9 @@ + + Description + Value + Default value + Bank + Mode + Range + Values + diff --git a/html_server/templates/registers/table_scripts.html b/html_server/templates/registers/table_scripts.html new file mode 100644 index 0000000..017c910 --- /dev/null +++ b/html_server/templates/registers/table_scripts.html @@ -0,0 +1,42 @@ +{% if standalone %} + + +{% endif %} + + -- cgit v1.2.3