init

Dependencies:   mbed

Committer:
Nathan Yonkee
Date:
Fri Mar 02 07:16:49 2018 -0700
Revision:
10:46a4cf51ee38
Parent:
9:d58e77ebd769
remove mbed-os

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Nathan Yonkee 9:d58e77ebd769 1 """
Nathan Yonkee 9:d58e77ebd769 2 mbed SDK
Nathan Yonkee 9:d58e77ebd769 3 Copyright (c) 2016 ARM Limited
Nathan Yonkee 9:d58e77ebd769 4
Nathan Yonkee 9:d58e77ebd769 5 Licensed under the Apache License, Version 2.0 (the "License");
Nathan Yonkee 9:d58e77ebd769 6 you may not use this file except in compliance with the License.
Nathan Yonkee 9:d58e77ebd769 7 You may obtain a copy of the License at
Nathan Yonkee 9:d58e77ebd769 8
Nathan Yonkee 9:d58e77ebd769 9 http://www.apache.org/licenses/LICENSE-2.0
Nathan Yonkee 9:d58e77ebd769 10
Nathan Yonkee 9:d58e77ebd769 11 Unless required by applicable law or agreed to in writing, software
Nathan Yonkee 9:d58e77ebd769 12 distributed under the License is distributed on an "AS IS" BASIS,
Nathan Yonkee 9:d58e77ebd769 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Nathan Yonkee 9:d58e77ebd769 14 See the License for the specific language governing permissions and
Nathan Yonkee 9:d58e77ebd769 15 limitations under the License.
Nathan Yonkee 9:d58e77ebd769 16 """
Nathan Yonkee 9:d58e77ebd769 17 from __future__ import print_function
Nathan Yonkee 9:d58e77ebd769 18 from os import getenv
Nathan Yonkee 9:d58e77ebd769 19 from os.path import join, abspath, dirname, exists
Nathan Yonkee 9:d58e77ebd769 20 import logging
Nathan Yonkee 9:d58e77ebd769 21
Nathan Yonkee 9:d58e77ebd769 22 ROOT = abspath(join(dirname(__file__), ".."))
Nathan Yonkee 9:d58e77ebd769 23
Nathan Yonkee 9:d58e77ebd769 24
Nathan Yonkee 9:d58e77ebd769 25 ##############################################################################
Nathan Yonkee 9:d58e77ebd769 26 # Toolchains and Build System Settings
Nathan Yonkee 9:d58e77ebd769 27 ##############################################################################
Nathan Yonkee 9:d58e77ebd769 28 BUILD_DIR = abspath(join(ROOT, "BUILD"))
Nathan Yonkee 9:d58e77ebd769 29
Nathan Yonkee 9:d58e77ebd769 30 # ARM Compiler 5
Nathan Yonkee 9:d58e77ebd769 31 ARM_PATH = ""
Nathan Yonkee 9:d58e77ebd769 32
Nathan Yonkee 9:d58e77ebd769 33 # ARM Compiler 6
Nathan Yonkee 9:d58e77ebd769 34 ARMC6_PATH = ""
Nathan Yonkee 9:d58e77ebd769 35
Nathan Yonkee 9:d58e77ebd769 36 # GCC ARM
Nathan Yonkee 9:d58e77ebd769 37 GCC_ARM_PATH = ""
Nathan Yonkee 9:d58e77ebd769 38
Nathan Yonkee 9:d58e77ebd769 39 # GCC CodeRed
Nathan Yonkee 9:d58e77ebd769 40 GCC_CR_PATH = ""
Nathan Yonkee 9:d58e77ebd769 41
Nathan Yonkee 9:d58e77ebd769 42 # IAR
Nathan Yonkee 9:d58e77ebd769 43 IAR_PATH = ""
Nathan Yonkee 9:d58e77ebd769 44
Nathan Yonkee 9:d58e77ebd769 45 # Goanna static analyser. Please overload it in mbed_settings.py
Nathan Yonkee 9:d58e77ebd769 46 GOANNA_PATH = ""
Nathan Yonkee 9:d58e77ebd769 47
Nathan Yonkee 9:d58e77ebd769 48 # cppcheck path (command) and output message format
Nathan Yonkee 9:d58e77ebd769 49 CPPCHECK_CMD = ["cppcheck", "--enable=all"]
Nathan Yonkee 9:d58e77ebd769 50 CPPCHECK_MSG_FORMAT = ["--template=[{severity}] {file}@{line}: {id}:{message}"]
Nathan Yonkee 9:d58e77ebd769 51
Nathan Yonkee 9:d58e77ebd769 52 BUILD_OPTIONS = []
Nathan Yonkee 9:d58e77ebd769 53
Nathan Yonkee 9:d58e77ebd769 54 # mbed.org username
Nathan Yonkee 9:d58e77ebd769 55 MBED_ORG_USER = ""
Nathan Yonkee 9:d58e77ebd769 56
Nathan Yonkee 9:d58e77ebd769 57 CLI_COLOR_MAP = {
Nathan Yonkee 9:d58e77ebd769 58 "warning": "yellow",
Nathan Yonkee 9:d58e77ebd769 59 "error" : "red"
Nathan Yonkee 9:d58e77ebd769 60 }
Nathan Yonkee 9:d58e77ebd769 61
Nathan Yonkee 9:d58e77ebd769 62 ##############################################################################
Nathan Yonkee 9:d58e77ebd769 63 # User Settings (file)
Nathan Yonkee 9:d58e77ebd769 64 ##############################################################################
Nathan Yonkee 9:d58e77ebd769 65 try:
Nathan Yonkee 9:d58e77ebd769 66 # Allow to overwrite the default settings without the need to edit the
Nathan Yonkee 9:d58e77ebd769 67 # settings file stored in the repository
Nathan Yonkee 9:d58e77ebd769 68 from mbed_settings import *
Nathan Yonkee 9:d58e77ebd769 69 except ImportError:
Nathan Yonkee 9:d58e77ebd769 70 pass
Nathan Yonkee 9:d58e77ebd769 71
Nathan Yonkee 9:d58e77ebd769 72
Nathan Yonkee 9:d58e77ebd769 73 ##############################################################################
Nathan Yonkee 9:d58e77ebd769 74 # User Settings (env vars)
Nathan Yonkee 9:d58e77ebd769 75 ##############################################################################
Nathan Yonkee 9:d58e77ebd769 76 _ENV_PATHS = ['ARM_PATH', 'GCC_ARM_PATH', 'GCC_CR_PATH', 'IAR_PATH',
Nathan Yonkee 9:d58e77ebd769 77 'ARMC6_PATH']
Nathan Yonkee 9:d58e77ebd769 78
Nathan Yonkee 9:d58e77ebd769 79 for _n in _ENV_PATHS:
Nathan Yonkee 9:d58e77ebd769 80 if getenv('MBED_'+_n):
Nathan Yonkee 9:d58e77ebd769 81 if exists(getenv('MBED_'+_n)):
Nathan Yonkee 9:d58e77ebd769 82 globals()[_n] = getenv('MBED_'+_n)
Nathan Yonkee 9:d58e77ebd769 83 else:
Nathan Yonkee 9:d58e77ebd769 84 print("WARNING: MBED_%s set as environment variable but doesn't"
Nathan Yonkee 9:d58e77ebd769 85 " exist" % _n)
Nathan Yonkee 9:d58e77ebd769 86
Nathan Yonkee 9:d58e77ebd769 87
Nathan Yonkee 9:d58e77ebd769 88 ##############################################################################
Nathan Yonkee 9:d58e77ebd769 89 # Test System Settings
Nathan Yonkee 9:d58e77ebd769 90 ##############################################################################
Nathan Yonkee 9:d58e77ebd769 91 SERVER_PORT = 59432
Nathan Yonkee 9:d58e77ebd769 92 SERVER_ADDRESS = "10.2.200.94"
Nathan Yonkee 9:d58e77ebd769 93 LOCALHOST = "10.2.200.94"
Nathan Yonkee 9:d58e77ebd769 94
Nathan Yonkee 9:d58e77ebd769 95 MUTs = {
Nathan Yonkee 9:d58e77ebd769 96 "1" : {"mcu": "LPC1768",
Nathan Yonkee 9:d58e77ebd769 97 "port":"COM41", "disk":'E:\\',
Nathan Yonkee 9:d58e77ebd769 98 "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"]
Nathan Yonkee 9:d58e77ebd769 99 },
Nathan Yonkee 9:d58e77ebd769 100 "2": {"mcu": "LPC11U24",
Nathan Yonkee 9:d58e77ebd769 101 "port":"COM42", "disk":'F:\\',
Nathan Yonkee 9:d58e77ebd769 102 "peripherals": ["TMP102", "digital_loop", "port_loop", "SD"]
Nathan Yonkee 9:d58e77ebd769 103 },
Nathan Yonkee 9:d58e77ebd769 104 "3" : {"mcu": "KL25Z",
Nathan Yonkee 9:d58e77ebd769 105 "port":"COM43", "disk":'G:\\',
Nathan Yonkee 9:d58e77ebd769 106 "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"]
Nathan Yonkee 9:d58e77ebd769 107 },
Nathan Yonkee 9:d58e77ebd769 108 }