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.
settings.py
00001 """ 00002 mbed SDK 00003 Copyright (c) 2016 ARM Limited 00004 00005 Licensed under the Apache License, Version 2.0 (the "License"); 00006 you may not use this file except in compliance with the License. 00007 You may obtain a copy of the License at 00008 00009 http://www.apache.org/licenses/LICENSE-2.0 00010 00011 Unless required by applicable law or agreed to in writing, software 00012 distributed under the License is distributed on an "AS IS" BASIS, 00013 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 See the License for the specific language governing permissions and 00015 limitations under the License. 00016 """ 00017 from __future__ import print_function 00018 from os import getenv 00019 from os.path import join, abspath, dirname, exists 00020 import logging 00021 00022 ROOT = abspath(join(dirname(__file__), "..")) 00023 00024 00025 ############################################################################## 00026 # Toolchains and Build System Settings 00027 ############################################################################## 00028 BUILD_DIR = abspath(join(ROOT, "BUILD")) 00029 00030 # ARM Compiler 5 00031 ARM_PATH = "" 00032 00033 # ARM Compiler 6 00034 ARMC6_PATH = "" 00035 00036 # GCC ARM 00037 GCC_ARM_PATH = "" 00038 00039 # GCC CodeRed 00040 GCC_CR_PATH = "" 00041 00042 # IAR 00043 IAR_PATH = "" 00044 00045 # Goanna static analyser. Please overload it in mbed_settings.py 00046 GOANNA_PATH = "" 00047 00048 # cppcheck path (command) and output message format 00049 CPPCHECK_CMD = ["cppcheck", "--enable=all"] 00050 CPPCHECK_MSG_FORMAT = ["--template=[{severity}] {file}@{line}: {id}:{message}"] 00051 00052 BUILD_OPTIONS = [] 00053 00054 # mbed.org username 00055 MBED_ORG_USER = "" 00056 00057 # Print compiler warnings and errors as link format 00058 PRINT_COMPILER_OUTPUT_AS_LINK = False 00059 00060 CLI_COLOR_MAP = { 00061 "warning": "yellow", 00062 "error" : "red" 00063 } 00064 00065 ############################################################################## 00066 # User Settings (file) 00067 ############################################################################## 00068 try: 00069 # Allow to overwrite the default settings without the need to edit the 00070 # settings file stored in the repository 00071 from mbed_settings import * 00072 except ImportError: 00073 pass 00074 00075 00076 ############################################################################## 00077 # User Settings (env vars) 00078 ############################################################################## 00079 _ENV_PATHS = ['ARM_PATH', 'GCC_ARM_PATH', 'GCC_CR_PATH', 'IAR_PATH', 00080 'ARMC6_PATH', 'PRINT_COMPILER_OUTPUT_AS_LINK'] 00081 00082 for _n in _ENV_PATHS: 00083 if getenv('MBED_'+_n): 00084 if exists(getenv('MBED_'+_n)): 00085 globals()[_n] = getenv('MBED_'+_n) 00086 else: 00087 print("WARNING: MBED_%s set as environment variable but doesn't" 00088 " exist" % _n) 00089 00090 00091 ############################################################################## 00092 # Test System Settings 00093 ############################################################################## 00094 SERVER_PORT = 59432 00095 SERVER_ADDRESS = "10.2.200.94" 00096 LOCALHOST = "10.2.200.94" 00097 00098 MUTs = { 00099 "1" : {"mcu": "LPC1768", 00100 "port":"COM41", "disk":'E:\\', 00101 "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"] 00102 }, 00103 "2": {"mcu": "LPC11U24", 00104 "port":"COM42", "disk":'F:\\', 00105 "peripherals": ["TMP102", "digital_loop", "port_loop", "SD"] 00106 }, 00107 "3" : {"mcu": "KL25Z", 00108 "port":"COM43", "disk":'G:\\', 00109 "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"] 00110 }, 00111 }
Generated on Tue Jul 12 2022 12:22:20 by
