diff --git a/targets/TARGET_Freescale/USBPhy_Kinetis.cpp b/targets/TARGET_Freescale/USBPhy_Kinetis.cpp index 4332ce3af6..61d08c3d3c 100644 --- a/targets/TARGET_Freescale/USBPhy_Kinetis.cpp +++ b/targets/TARGET_Freescale/USBPhy_Kinetis.cpp @@ -17,8 +17,7 @@ #if defined(DEVICE_USBDEVICE) && DEVICE_USBDEVICE && \ (defined(TARGET_KL25Z) | defined(TARGET_KL43Z) | \ defined(TARGET_KL46Z) | \ - defined(TARGET_K64F) | defined(TARGET_K22F) | defined(TARGET_K82F) | \ - defined(TARGET_TEENSY3_1)) + defined(TARGET_K64F) | defined(TARGET_K22F) | defined(TARGET_K82F)) #if defined(TARGET_KSDK2_MCUS) #include "fsl_common.h" diff --git a/targets/TARGET_Freescale/mbed_rtx.h b/targets/TARGET_Freescale/mbed_rtx.h index 1b0b876c29..7e54aac663 100644 --- a/targets/TARGET_Freescale/mbed_rtx.h +++ b/targets/TARGET_Freescale/mbed_rtx.h @@ -19,13 +19,7 @@ #include -#if defined(TARGET_TEENSY3_1) - -#ifndef INITIAL_SP -#define INITIAL_SP (0x20008000UL) -#endif - -#elif defined(TARGET_MCU_K22F) +#if defined(TARGET_MCU_K22F) #ifndef INITIAL_SP #define INITIAL_SP (0x20010000UL) diff --git a/targets/targets.json b/targets/targets.json index 554a2ce4d6..73a574e5a1 100644 --- a/targets/targets.json +++ b/targets/targets.json @@ -720,55 +720,6 @@ "device_name": "MKL46Z256xxx4", "bootloader_supported": true }, - "TEENSY3_1": { - "inherits": [ - "Target" - ], - "core": "Cortex-M4", - "extra_labels": [ - "Freescale", - "K20XX", - "K20DX256" - ], - "OUTPUT_EXT": "hex", - "is_disk_virtual": true, - "supported_toolchains": [ - "GCC_ARM", - "ARM" - ], - "post_binary_hook": { - "function": "TEENSY3_1Code.binary_hook", - "toolchains": [ - "ARM_STD", - "ARM_MICRO", - "GCC_ARM" - ] - }, - "detect_code": [ - "0230" - ], - "device_has": [ - "ANALOGIN", - "ANALOGOUT", - "I2C", - "I2CSLAVE", - "INTERRUPTIN", - "PORTIN", - "PORTINOUT", - "PORTOUT", - "PWMOUT", - "SEMIHOST", - "SERIAL", - "SLEEP", - "SPI", - "SPISLAVE", - "STDIO_MESSAGES" - ], - "release_versions": [ - "2" - ], - "device_name": "MK20DX256xxx7" - }, "MCU_K22F512": { "core": "Cortex-M4F", "supported_toolchains": [ diff --git a/tools/export/cmake/__init__.py b/tools/export/cmake/__init__.py index 1b05a6f465..5163c03643 100644 --- a/tools/export/cmake/__init__.py +++ b/tools/export/cmake/__init__.py @@ -43,7 +43,6 @@ class CMake(Exporter): POST_BINARY_WHITELIST = set([ "MCU_NRF51Code.binary_hook", - "TEENSY3_1Code.binary_hook", "LPCTargetCode.lpc_patch", "PSOC6Code.complete" ]) diff --git a/tools/export/embitz/__init__.py b/tools/export/embitz/__init__.py index 7b2a047b00..bcd782604d 100644 --- a/tools/export/embitz/__init__.py +++ b/tools/export/embitz/__init__.py @@ -22,7 +22,6 @@ from tools.export.exporters import Exporter, apply_supported_whitelist POST_BINARY_WHITELIST = set([ - "TEENSY3_1Code.binary_hook", "LPCTargetCode.lpc_patch" ]) diff --git a/tools/export/gnuarmeclipse/__init__.py b/tools/export/gnuarmeclipse/__init__.py index 2b9925f139..380e43f076 100644 --- a/tools/export/gnuarmeclipse/__init__.py +++ b/tools/export/gnuarmeclipse/__init__.py @@ -61,7 +61,6 @@ u = UID() POST_BINARY_WHITELIST = set([ - "TEENSY3_1Code.binary_hook", "MCU_NRF51Code.binary_hook", "LPCTargetCode.lpc_patch", "PSOC6Code.complete" diff --git a/tools/export/makefile/__init__.py b/tools/export/makefile/__init__.py index 10f8b0f775..07cae6c455 100644 --- a/tools/export/makefile/__init__.py +++ b/tools/export/makefile/__init__.py @@ -62,7 +62,6 @@ class Makefile(Exporter): POST_BINARY_WHITELIST = set([ "MCU_NRF51Code.binary_hook", - "TEENSY3_1Code.binary_hook", "LPCTargetCode.lpc_patch", "PSOC6Code.complete" ]) diff --git a/tools/export/mcuxpresso/__init__.py b/tools/export/mcuxpresso/__init__.py index bb687d7ada..278c43da18 100644 --- a/tools/export/mcuxpresso/__init__.py +++ b/tools/export/mcuxpresso/__init__.py @@ -43,7 +43,6 @@ from tools.build_api import prepare_toolchain POST_BINARY_WHITELIST = set([ - "TEENSY3_1Code.binary_hook", "MCU_NRF51Code.binary_hook", "LPCTargetCode.lpc_patch" ]) diff --git a/tools/export/nb/__init__.py b/tools/export/nb/__init__.py index f0253c5643..90c6522cfc 100644 --- a/tools/export/nb/__init__.py +++ b/tools/export/nb/__init__.py @@ -15,7 +15,6 @@ from tools.utils import NotSupportedException from tools.build_api import prepare_toolchain POST_BINARY_WHITELIST = set([ - "TEENSY3_1Code.binary_hook", "MCU_NRF51Code.binary_hook", "LPCTargetCode.lpc_patch" ]) diff --git a/tools/export/uvision/__init__.py b/tools/export/uvision/__init__.py index 60982ed4b7..02b330f64d 100644 --- a/tools/export/uvision/__init__.py +++ b/tools/export/uvision/__init__.py @@ -133,7 +133,6 @@ class Uvision(Exporter): POST_BINARY_WHITELIST = set([ "MCU_NRF51Code.binary_hook", - "TEENSY3_1Code.binary_hook", "LPCTargetCode.lpc_patch", "MTSCode.combine_bins_mts_dragonfly", "NCS36510TargetCode.ncs36510_addfib", diff --git a/tools/targets/__init__.py b/tools/targets/__init__.py index 66e038e206..30a88fa18f 100644 --- a/tools/targets/__init__.py +++ b/tools/targets/__init__.py @@ -470,16 +470,6 @@ class LPCTargetCode(object): t_self.notify.debug("LPC Patch: %s" % os.path.split(binf)[1]) patch(binf) -class TEENSY3_1Code(object): - """Hooks for the TEENSY3.1""" - @staticmethod - def binary_hook(t_self, resources, elf, binf): - """Hook that is run after elf is generated""" - # This function is referenced by old versions of targets.json and - # should be kept for backwards compatibility. - pass - - class MTSCode(object): """Generic MTS code""" @staticmethod