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/embitz/__init__.py
- Revision:
- 36:96847d42f010
- Parent:
- 35:da9c89f8be7d
- Child:
- 40:7d3fa6b99b2b
--- a/export/embitz/__init__.py Wed Feb 15 13:53:18 2017 -0600
+++ b/export/embitz/__init__.py Thu Jun 22 11:12:28 2017 -0500
@@ -16,14 +16,22 @@
"""
from os.path import splitext, basename
from tools.targets import TARGET_MAP
-from tools.export.exporters import Exporter
+from tools.export.exporters import Exporter, filter_supported
+
+
+POST_BINARY_WHITELIST = set([
+ "TEENSY3_1Code.binary_hook",
+ "LPCTargetCode.lpc_patch",
+ "LPC4088Code.binary_hook"
+])
+
class EmBitz(Exporter):
NAME = 'EmBitz'
TOOLCHAIN = 'GCC_ARM'
- TARGETS = [target for target, obj in TARGET_MAP.iteritems()
- if "GCC_ARM" in obj.supported_toolchains]
+
+ TARGETS = filter_supported("GCC_ARM", POST_BINARY_WHITELIST)
MBED_CONFIG_HEADER_SUPPORTED = True
