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.
Dependencies: MAX44000 PWM_Tone_Library nexpaq_mdk
Fork of LED_Demo by
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 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 = "C:/Keil_v5/ARM/ARMCC" 00032 00033 # GCC ARM 00034 GCC_ARM_PATH = "" 00035 00036 # GCC CodeRed 00037 GCC_CR_PATH = "C:/code_red/RedSuite_4.2.0_349/redsuite/Tools/bin" 00038 00039 # IAR 00040 IAR_PATH = "C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.3/arm" 00041 00042 # Goanna static analyser. Please overload it in mbed_settings.py 00043 GOANNA_PATH = "c:/Program Files (x86)/RedLizards/Goanna Central 3.2.3/bin" 00044 00045 # cppcheck path (command) and output message format 00046 CPPCHECK_CMD = ["cppcheck", "--enable=all"] 00047 CPPCHECK_MSG_FORMAT = ["--template=[{severity}] {file}@{line}: {id}:{message}"] 00048 00049 BUILD_OPTIONS = [] 00050 00051 # mbed.org username 00052 MBED_ORG_USER = "" 00053 00054 CLI_COLOR_MAP = { 00055 "warning": "yellow", 00056 "error" : "red" 00057 } 00058 00059 ############################################################################## 00060 # User Settings (file) 00061 ############################################################################## 00062 try: 00063 # Allow to overwrite the default settings without the need to edit the 00064 # settings file stored in the repository 00065 from mbed_settings import * 00066 except ImportError: 00067 pass 00068 00069 00070 ############################################################################## 00071 # User Settings (env vars) 00072 ############################################################################## 00073 _ENV_PATHS = ['ARM_PATH', 'GCC_ARM_PATH', 'GCC_CR_PATH', 'IAR_PATH'] 00074 00075 for _n in _ENV_PATHS: 00076 if getenv('MBED_'+_n): 00077 if exists(getenv('MBED_'+_n)): 00078 globals()[_n] = getenv('MBED_'+_n) 00079 else: 00080 print "WARNING: MBED_%s set as environment variable but doesn't exist" % _n 00081 00082 00083 ############################################################################## 00084 # Test System Settings 00085 ############################################################################## 00086 SERVER_PORT = 59432 00087 SERVER_ADDRESS = "10.2.200.94" 00088 LOCALHOST = "10.2.200.94" 00089 00090 MUTs = { 00091 "1" : {"mcu": "LPC1768", 00092 "port":"COM41", "disk":'E:\\', 00093 "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"] 00094 }, 00095 "2": {"mcu": "LPC11U24", 00096 "port":"COM42", "disk":'F:\\', 00097 "peripherals": ["TMP102", "digital_loop", "port_loop", "SD"] 00098 }, 00099 "3" : {"mcu": "KL25Z", 00100 "port":"COM43", "disk":'G:\\', 00101 "peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"] 00102 }, 00103 }
Generated on Tue Jul 12 2022 12:28:48 by
