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.
Fork of mbed-tools by
default_settings.py
00001 """ 00002 mbed SDK 00003 Copyright (c) 2011-2013 ARM Limited 00004 Licensed under the Apache License, Version 2.0 (the "License"); 00005 you may not use this file except in compliance with the License. 00006 You may obtain a copy of the License at 00007 http://www.apache.org/licenses/LICENSE-2.0 00008 Unless required by applicable law or agreed to in writing, software 00009 distributed under the License is distributed on an "AS IS" BASIS, 00010 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00011 See the License for the specific language governing permissions and 00012 limitations under the License. 00013 """ 00014 00015 from os.path import join, abspath, dirname 00016 import logging 00017 00018 ROOT = abspath(join(dirname(__file__), "..")) 00019 00020 # These default settings have two purposes: 00021 # 1) Give a template for writing local "private_settings.py" 00022 # 2) Give default initialization fields for the "toolchains.py" constructors 00023 00024 ############################################################################## 00025 # Build System Settings 00026 ############################################################################## 00027 BUILD_DIR = abspath(join(ROOT, "build")) 00028 00029 # ARM 00030 ARM_PATH = "C:/Program Files/ARM" 00031 ARM_BIN = join(ARM_PATH, "bin") 00032 ARM_INC = join(ARM_PATH, "include") 00033 ARM_LIB = join(ARM_PATH, "lib") 00034 00035 ARM_CPPLIB = join(ARM_LIB, "cpplib") 00036 MY_ARM_CLIB = join(ARM_PATH, "lib", "microlib") 00037 00038 # GCC ARM 00039 GCC_ARM_PATH = "" 00040 00041 # GCC CodeRed 00042 GCC_CR_PATH = "C:/code_red/RedSuite_4.2.0_349/redsuite/Tools/bin" 00043 00044 # IAR 00045 IAR_PATH = "C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.0/arm" 00046 00047 # Goanna static analyser. Please overload it in private_settings.py 00048 GOANNA_PATH = "c:/Program Files (x86)/RedLizards/Goanna Central 3.2.3/bin" 00049 00050 # cppcheck path (command) and output message format 00051 CPPCHECK_CMD = ["cppcheck", "--enable=all"] 00052 CPPCHECK_MSG_FORMAT = ["--template=[{severity}] {file}@{line}: {id}:{message}"] 00053 00054 BUILD_OPTIONS = [] 00055 00056 # mbed.org username 00057 MBED_ORG_USER = "" 00058 00059 ############################################################################## 00060 # Private Settings 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 print '[WARNING] Using default settings. Define your settings in the file "./mbed_settings.py"'
Generated on Thu Jun 15 2023 14:54:59 by
