Michal Sojka [Sun, 4 Oct 2015 20:04:18 +0000 (22:04 +0200)]
gio: Let transform function set pin param to the same value as pin_name
It is better for the user if she sees only the popup with pin names rather
than the edit box. If the pin does not exist in the popup list, block
initialization code takes care of this case.
Michal Sojka [Sun, 4 Oct 2015 07:08:03 +0000 (09:08 +0200)]
Update block masks by running rpp_update_doc.m
Changelog:
Processing rpp_can_rx/CAN Receive
Processing rpp_can_setup/CAN Setup
Processing rpp_can_tx/CAN Transmit
Processing rpp_gio_in/General Purpose Digital Input
diff --git a/sfunction_gio_in.MaskDescription.old b/sfunction_gio_in.MaskDescription.new
index 208dfe5..5be5fdc 100644
--- a/sfunction_gio_in.MaskDescription.old
+++ b/sfunction_gio_in.MaskDescription.new
@@ -1,2 +1,2 @@
<p>Reads[-a-] value from a [-GPIO-]{+GIO+} pin. {+Which pins are supported depends on the target board.+} The [-block supports GIOA, GIOB and NHET1 ports. Any-]{+selected+} pin can be configured as tri-state, pull up or pull down.</p>
[-<p>It is not allowed to read from one-]{+<p>When the+} pin[-by using more then one GIOIN blocks. It-] is [-not allowed to use-]{+used in multiple+} GIOIN [-and DOUT blocks together configured for one GPIO pin.</p>-]{+or GIOOUT blocks, an error is signaled.</p>+}
diff --git a/sfunction_gio_in.MaskHelp.old b/sfunction_gio_in.MaskHelp.new
index 208dfe5..5be5fdc 100644
--- a/sfunction_gio_in.MaskHelp.old
+++ b/sfunction_gio_in.MaskHelp.new
@@ -1,2 +1,2 @@
<p>Reads[-a-] value from a [-GPIO-]{+GIO+} pin. {+Which pins are supported depends on the target board.+} The [-block supports GIOA, GIOB and NHET1 ports. Any-]{+selected+} pin can be configured as tri-state, pull up or pull down.</p>
[-<p>It is not allowed to read from one-]{+<p>When the+} pin[-by using more then one GIOIN blocks. It-] is [-not allowed to use-]{+used in multiple+} GIOIN [-and DOUT blocks together configured for one GPIO pin.</p>-]{+or GIOOUT blocks, an error is signaled.</p>+}
[\bWarning: an error occurred while parsing class fxptui.explorer:
Invalid data type.
]\b
Processing rpp_gio_out/General Purpose Digital Output
diff --git a/sfunction_gio_out.MaskDescription.old b/sfunction_gio_out.MaskDescription.new
index 8c37163..63ee0cb 100644
--- a/sfunction_gio_out.MaskDescription.old
+++ b/sfunction_gio_out.MaskDescription.new
@@ -1,2 +1,2 @@
[-<p>Writes-]{+<p>Sets+} a [-value-]{+GIO pin+} to a [-GPIO pin. The block supports GIOA, GIOB and NHET1 ports.-]{+given value. Which pins are supported depends on the target board.+} Any pin can be configured as open drain or push/pull and initial output value can be specified. The initial value is a value, which will appear on the pin when the GPIO module is initialized and stays there until the first block execution.</p>
[-<p>It is not allowed to write to one-]{+<p>When the+} pin[-by using more then one GIOOUT blocks. It-] is [-not allowed to use-]{+used in multiple GIOIN or+} GIOOUT [-and DIN blocks on one GPIO pin.</p>-]{+blocks, an error is signaled.</p>+}
diff --git a/sfunction_gio_out.MaskHelp.old b/sfunction_gio_out.MaskHelp.new
index 8c37163..63ee0cb 100644
--- a/sfunction_gio_out.MaskHelp.old
+++ b/sfunction_gio_out.MaskHelp.new
@@ -1,2 +1,2 @@
[-<p>Writes-]{+<p>Sets+} a [-value-]{+GIO pin+} to a [-GPIO pin. The block supports GIOA, GIOB and NHET1 ports.-]{+given value. Which pins are supported depends on the target board.+} Any pin can be configured as open drain or push/pull and initial output value can be specified. The initial value is a value, which will appear on the pin when the GPIO module is initialized and stays there until the first block execution.</p>
[-<p>It is not allowed to write to one-]{+<p>When the+} pin[-by using more then one GIOOUT blocks. It-] is [-not allowed to use-]{+used in multiple GIOIN or+} GIOOUT [-and DIN blocks on one GPIO pin.</p>-]{+blocks, an error is signaled.</p>+}
Michal Sojka [Sat, 29 Aug 2015 20:01:22 +0000 (22:01 +0200)]
Fix unified single/multi-tasking main template
- create only one task in single tasking mode
- replace break with continue in overrun handling block
- initialize model from control thread (i.e. after starting scheduler).
Some parts of the library may require this.
Michal Sojka [Thu, 27 Aug 2015 15:21:04 +0000 (17:21 +0200)]
User rpp_mrmain.tlc for both modes, delete rpp_srmain.tlc
The code generated by these two templates is more or less the same, the
only difference is that srmain has hardcoded one worker task, whereas
mrmain can have one or more. Having just one template simplifies testing
so convert everything to it.
Michal Sojka [Tue, 25 Aug 2015 21:39:02 +0000 (23:39 +0200)]
doc/Makefile: Do not configure test-sw if already done.
I have both lib directories bind-mounted to the same directory. Without
this change, I was not able to compile documentation, because cp complained
about copying file to itself.