]> rtime.felk.cvut.cz Git - jenkicar/rpp-simulink.git/commitdiff
Update documentation for 0.6 release
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 3 Sep 2015 08:19:24 +0000 (10:19 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 3 Sep 2015 10:57:50 +0000 (12:57 +0200)
doc/rpp_simulink.tex
rpp/blocks/scripts/doc_parse.py

index 96a8c0f8def655a39ac72d746ee675d53bedcf62..1b7bc9af853ca482649e68da86bd8348f311dcda 100644 (file)
@@ -10,6 +10,7 @@
 \usepackage{todonotes}
 \usepackage[backend=biber,style=alphabetic,sortcites=true]{biblatex}
 \usepackage{tabularx}
+\usepackage{textcomp}
 \addbibresource{rpp_simulink.bib}
 
 % header
@@ -165,6 +166,14 @@ Michal \textsc{Sojka}\\[\baselineskip]
            0.5.5 & 2015-08-27 & Sojka, Horn & rpp-lib: HAL merged into DRV
                                               layer, FreeRTOS upgraded to version 8.2.2.
            \\\hline
+
+           0.6 & 2015-09-03 & Sojka & Multi-rate models can be
+                                      compiled in multi-tasking mode
+                                      (see
+                                      Sections~\ref{sec-singlet-multit-modes}
+                                      and \ref{sec:mult-multi-thre}).
+                                      Added board init block (Section \ref{sec:block:sfunction_hydctr_init.c}).
+           \\\hline
 \end{tabularx}
 
 \tableofcontents
@@ -1660,7 +1669,7 @@ target, described in Chapter~\ref{chap-simulink-coder-target}, the
 template for generation of the \texttt{ert\_main.c} file, containing
 the main function, has to be modified to use proper functions for task
 creation, task timing and semaphores. The template is stored in
-\texttt{\repo/rpp/rpp/rpp\_srmain.tlc} file.
+\texttt{\repo/rpp/rpp/rpp\_mrmain.tlc} file.
 
 \chapter{Simulink Coder Target}
 \label{chap-simulink-coder-target}
index e19af13bf6a3272f4a30507252cfc5aff6f91405..a51f5f9f4b27a0af9950713fa0e097d927e81776 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env python3
 
-# Copyright (C) 2013-2014 Czech Technical University in Prague
+# Copyright (C) 2013-2015 Czech Technical University in Prague
 #
 # Authors:
 #     - Michal Sojka <sojkam1@fel.cvut.cz>
@@ -19,6 +19,7 @@ import Rx
 import sys
 import subprocess
 import os
+import os.path
 from string import Template
 
 parser = argparse.ArgumentParser()
@@ -52,7 +53,7 @@ def print_markdown_as(format, text):
     if proc.returncode:
         raise Exception("pandoc failed: %d" % proc.returncode)
 
-def print_latex_desc(doc):
+def print_latex_desc(doc, filename):
     def iodef_str(iodef):
         if iodef is None: return "None"
         str='%d\n\\begin{enumerate}\n' % len(iodef)
@@ -66,7 +67,8 @@ def print_latex_desc(doc):
         return str +'\end{enumerate}'
 
     print("\\newpage\n")
-    print("\\subsection{%s}\n" % doc['Name'])
+    print("\\subsection{%s}" % doc['Name'])
+    print("\\label{sec:block:%s}\n" % os.path.basename(filename))
     print("\\begin{description}\n")
     print("\\item[Inputs:]     %s\n" % iodef_str(doc['Inputs']))
     print("\\item[Outputs:]    %s\n" % iodef_str(doc['Outputs']))
@@ -117,7 +119,7 @@ def process_file(f):
     if args.printhelp:
         print_markdown_as(fmt, doc['Help'])
     if args.latex:
-        print_latex_desc(doc)
+        print_latex_desc(doc, f)
     if args.latex_table:
         global last_category
         if last_category == doc['Category']: doc['Category']=''