mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			Remove TEENSY3_1 target
							parent
							
								
									52581cdd0e
								
							
						
					
					
						commit
						f21759bc35
					
				| 
						 | 
				
			
			@ -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"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,13 +19,7 @@
 | 
			
		|||
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
 | 
			
		||||
#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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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": [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -43,7 +43,6 @@ class CMake(Exporter):
 | 
			
		|||
 | 
			
		||||
    POST_BINARY_WHITELIST = set([
 | 
			
		||||
        "MCU_NRF51Code.binary_hook",
 | 
			
		||||
        "TEENSY3_1Code.binary_hook",
 | 
			
		||||
        "LPCTargetCode.lpc_patch",
 | 
			
		||||
        "PSOC6Code.complete"
 | 
			
		||||
    ])
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -22,7 +22,6 @@ from tools.export.exporters import Exporter, apply_supported_whitelist
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
POST_BINARY_WHITELIST = set([
 | 
			
		||||
    "TEENSY3_1Code.binary_hook",
 | 
			
		||||
    "LPCTargetCode.lpc_patch"
 | 
			
		||||
])
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -61,7 +61,6 @@ u = UID()
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
POST_BINARY_WHITELIST = set([
 | 
			
		||||
    "TEENSY3_1Code.binary_hook",
 | 
			
		||||
    "MCU_NRF51Code.binary_hook",
 | 
			
		||||
    "LPCTargetCode.lpc_patch",
 | 
			
		||||
    "PSOC6Code.complete"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -62,7 +62,6 @@ class Makefile(Exporter):
 | 
			
		|||
 | 
			
		||||
    POST_BINARY_WHITELIST = set([
 | 
			
		||||
        "MCU_NRF51Code.binary_hook",
 | 
			
		||||
        "TEENSY3_1Code.binary_hook",
 | 
			
		||||
        "LPCTargetCode.lpc_patch",
 | 
			
		||||
        "PSOC6Code.complete"
 | 
			
		||||
    ])
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
])
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
])
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue