summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChad Elliott <elliottc@objectcomputing.com>2019-05-22 08:22:30 -0500
committerChad Elliott <elliottc@objectcomputing.com>2019-05-22 08:22:30 -0500
commit9ec8b97e130e4fbba8731a8d15493b4e28aa3d73 (patch)
tree3ffaa0d0b60355f14d88be1a3ef28ae4da2e8437 /templates
parentfcd7dcf915e0ea7d0210124a7770dcbcf89f38dd (diff)
downloadMPC-9ec8b97e130e4fbba8731a8d15493b4e28aa3d73.tar.gz
Wed May 22 13:21:16 UTC 2019 Chad Elliott <elliott_c@ociweb.com>
* docs/templates/iar.txt: * templates/iar.mpd: * templates/iar.mpt: Added a 'gruntimelibselect' template variable to change the DLib config setting.
Diffstat (limited to 'templates')
-rw-r--r--templates/iar.mpd16
-rw-r--r--templates/iar.mpt8
2 files changed, 21 insertions, 3 deletions
diff --git a/templates/iar.mpd b/templates/iar.mpd
index 53a571aa..68cb261b 100644
--- a/templates/iar.mpd
+++ b/templates/iar.mpd
@@ -59,12 +59,12 @@
<option>
<name>GRuntimeLibSelect</name>
<version>0</version>
- <state>2</state>
+ <state><%gruntimelibselect%></state>
</option>
<option>
<name>GRuntimeLibSelectSlave</name>
<version>0</version>
- <state>2</state>
+ <state><%gruntimelibselect%></state>
</option>
<option>
<name>RTDescription</name>
@@ -122,7 +122,17 @@
</option>
<option>
<name>RTConfigPath2</name>
- <state>$TOOLKIT_DIR$\inc\c\<%dlib_config(DLib_Config_Normal.h)%></state>
+<%if(compares(gruntimelibselect, 1))%>
+ <state>$TOOLKIT_DIR$\inc\c\DLib_Config_Normal.h</state>
+<%else%>
+<%if(compares(gruntimelibselect, 2))%>
+ <state>$TOOLKIT_DIR$\inc\c\DLib_Config_Full.h</state>
+<%else%>
+<%if(compares(gruntimelibselect, 3))%>
+ <state><%dlib_config%></state>
+<%endif%>
+<%endif%>
+<%endif%>
</option>
<option>
<name>GBECoreSlave</name>
diff --git a/templates/iar.mpt b/templates/iar.mpt
index 36e3706f..6dbcec47 100644
--- a/templates/iar.mpt
+++ b/templates/iar.mpt
@@ -6,6 +6,14 @@ configurations = Debug Release
toolchain = ARM
chip = "MK70FN1M0xxx12 NXP MK70FN1M0xxx12"
+// GRuntimeLibSelect determines the type of DLib support.
+// You can override this in your mpb file.
+// 0 - None
+// 1 - Normal
+// 2 - Full
+// 3 - Custom
+gruntimelibselect = 1
+
Debug {
debug = 1
lib_modifier = d