File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 20
20
from workspace_tools .export .exporters import Exporter
21
21
from workspace_tools .targets import TARGET_MAP , TARGET_NAMES
22
22
23
+ # If you wish to add a new target, add it to project_generator_definitions, and then
24
+ # define progen_target name in the target class (`` self.progen_target = 'my_target_name' ``)
25
+ # There are 2 default mbed templates (predefined settings) uvision.uvproj and uvproj_microlib.uvproj.tmpl
23
26
class Uvision4 (Exporter ):
24
27
"""
25
- Exporter class for IAR Systems . This class uses project generator.
28
+ Exporter class for uvision . This class uses project generator.
26
29
"""
27
30
# These 2 are currently for exporters backward compatiblity
28
31
NAME = 'uVision4'
@@ -46,10 +49,10 @@ def generate(self):
46
49
""" Generates the project files """
47
50
project_data = self .progen_get_project_data ()
48
51
tool_specific = {}
49
- # Expand tool specific settings by uivison specific settings which are required
52
+ # Expand tool specific settings by uvision specific settings which are required
50
53
try :
51
- if TARGET_MAP [self .target ].progen ['uivison ' ]['template' ]:
52
- tool_specific ['uivison ' ] = TARGET_MAP [self .target ].progen ['uivison ' ]
54
+ if TARGET_MAP [self .target ].progen ['uvision ' ]['template' ]:
55
+ tool_specific ['uvision ' ] = TARGET_MAP [self .target ].progen ['uvision ' ]
53
56
except KeyError :
54
57
# use default template
55
58
# by the mbed projects
You can’t perform that action at this time.
0 commit comments