Skip to content

Commit 3dcdd6e

Browse files
committed
Exporters uvision - fix wording
1 parent ccdf5b2 commit 3dcdd6e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

workspace_tools/export/uvision4.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@
2020
from workspace_tools.export.exporters import Exporter
2121
from workspace_tools.targets import TARGET_MAP, TARGET_NAMES
2222

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
2326
class Uvision4(Exporter):
2427
"""
25-
Exporter class for IAR Systems. This class uses project generator.
28+
Exporter class for uvision. This class uses project generator.
2629
"""
2730
# These 2 are currently for exporters backward compatiblity
2831
NAME = 'uVision4'
@@ -46,10 +49,10 @@ def generate(self):
4649
""" Generates the project files """
4750
project_data = self.progen_get_project_data()
4851
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
5053
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']
5356
except KeyError:
5457
# use default template
5558
# by the mbed projects

0 commit comments

Comments
 (0)