Skip to content

Commit 9ec8b97

Browse files
committed
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.
1 parent fcd7dcf commit 9ec8b97

4 files changed

Lines changed: 32 additions & 4 deletions

File tree

ChangeLog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
Wed May 22 13:21:16 UTC 2019 Chad Elliott <elliott_c@ociweb.com>
2+
3+
* docs/templates/iar.txt:
4+
* templates/iar.mpd:
5+
* templates/iar.mpt:
6+
7+
Added a 'gruntimelibselect' template variable to change the DLib
8+
config setting.
9+
110
Tue May 21 11:16:16 UTC 2019 Chad Elliott <elliott_c@ociweb.com>
211

312
* templates/iar.mpd:

docs/templates/iar.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
//
77
chip = This will be the chip version used by the UI.
88
debug = This will be 1 if in debug mode and 0 if in release mode.
9-
dlib_config = The configuration header file for the DLib.
9+
dlib_config = The configuration header file for the DLib. This is only used if gruntimelibselect is set to 3.
1010
gendianmode = Corresponds to the Endian mode under General Options.
1111
gendianmodebe = When General Options Endian mode is Big (1), BE32 is 0 and BE8 is 1.
1212
generalenablemisra = Set this to 1 to enable MISRA in the General Options.
13+
gruntimelibselect = Sets the DLib runtime support (0 - None, 1 - Normal, 2 - Full, 3 - Custom).
1314
ilinkicffile = Set this to override the default ICF file.
1415
ilinkprogramentrylabel = Use this to override the default program entry name.
1516
oglastsavedbyproductversion = The version number of the product at the last saving time of the project.

templates/iar.mpd

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@
5959
<option>
6060
<name>GRuntimeLibSelect</name>
6161
<version>0</version>
62-
<state>2</state>
62+
<state><%gruntimelibselect%></state>
6363
</option>
6464
<option>
6565
<name>GRuntimeLibSelectSlave</name>
6666
<version>0</version>
67-
<state>2</state>
67+
<state><%gruntimelibselect%></state>
6868
</option>
6969
<option>
7070
<name>RTDescription</name>
@@ -122,7 +122,17 @@
122122
</option>
123123
<option>
124124
<name>RTConfigPath2</name>
125-
<state>$TOOLKIT_DIR$\inc\c\<%dlib_config(DLib_Config_Normal.h)%></state>
125+
<%if(compares(gruntimelibselect, 1))%>
126+
<state>$TOOLKIT_DIR$\inc\c\DLib_Config_Normal.h</state>
127+
<%else%>
128+
<%if(compares(gruntimelibselect, 2))%>
129+
<state>$TOOLKIT_DIR$\inc\c\DLib_Config_Full.h</state>
130+
<%else%>
131+
<%if(compares(gruntimelibselect, 3))%>
132+
<state><%dlib_config%></state>
133+
<%endif%>
134+
<%endif%>
135+
<%endif%>
126136
</option>
127137
<option>
128138
<name>GBECoreSlave</name>

templates/iar.mpt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ configurations = Debug Release
66
toolchain = ARM
77
chip = "MK70FN1M0xxx12 NXP MK70FN1M0xxx12"
88

9+
// GRuntimeLibSelect determines the type of DLib support.
10+
// You can override this in your mpb file.
11+
// 0 - None
12+
// 1 - Normal
13+
// 2 - Full
14+
// 3 - Custom
15+
gruntimelibselect = 1
16+
917
Debug {
1018
debug = 1
1119
lib_modifier = d

0 commit comments

Comments
 (0)