Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: export/cmsis/__init__.py
- Revision:
- 40:7d3fa6b99b2b
- Parent:
- 36:96847d42f010
- Child:
- 43:2a7da56ebd24
--- a/export/cmsis/__init__.py Wed Jul 19 16:44:30 2017 -0500
+++ b/export/cmsis/__init__.py Tue Oct 10 16:56:30 2017 -0500
@@ -103,8 +103,11 @@
class CMSIS(Exporter):
NAME = 'cmsis'
TOOLCHAIN = 'ARM'
- TARGETS = [target for target, obj in TARGET_MAP.iteritems()
- if "ARM" in obj.supported_toolchains]
+
+ @classmethod
+ def is_target_supported(cls, target_name):
+ target = TARGET_MAP[target_name]
+ return cls.TOOLCHAIN in target.supported_toolchains
def make_key(self, src):
"""turn a source file into its group name"""
