From 317effa42fc8061aacdb8c1c431704a9ea748f34 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Thu, 3 Sep 2015 10:19:24 +0200 Subject: [PATCH] Update documentation for 0.6 release --- doc/rpp_simulink.tex | 11 ++++++++++- rpp/blocks/scripts/doc_parse.py | 10 ++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/doc/rpp_simulink.tex b/doc/rpp_simulink.tex index 96a8c0f..1b7bc9a 100644 --- a/doc/rpp_simulink.tex +++ b/doc/rpp_simulink.tex @@ -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} diff --git a/rpp/blocks/scripts/doc_parse.py b/rpp/blocks/scripts/doc_parse.py index e19af13..a51f5f9 100755 --- a/rpp/blocks/scripts/doc_parse.py +++ b/rpp/blocks/scripts/doc_parse.py @@ -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 @@ -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']='' -- 2.39.2